Why does my iphone go to sleep on YouTube?

So I started having this problem when I go on the YouTube app on my iphone and I'm watching a video after two minutes my auto lock activates and turns off my phone while I'm watching a video. This never happens to me when I'm watching a video now this keeps happening. Can anyone help me fix this (everything all new and updated so why would this happen?)

Maybe your screen timeout reset to 1 or 2 minutes. I don't have an iPhone but go to your display settings and try adjusting the screen timeout.

  • Why won't iphone sleep/wake button work? It worked completely fine yesterday and now it won't.haven't dropped it and it hasn't given me a problem before.
  • Why is iPhone XS Max suddenly losing sounds while in sleep mode? It occurs about 3 times a week. More frequently when the iphone is in airplane mode or the Wi-Fi is off. I have tried resetting all configurations and deleting, restarting with iTunes, updating but the issue reappears. I took it to the authorized Apple technical service in Colombia, but they didn't find any problem. Has anyone else had this problem or knows about it? What can I do?
  • Why doesn't my iphone's sleep/wake button not work? So my iphone's sleep/wake button feels weird.whenever i push it, it feels like i have to push it harder for it to work. Can i fix this by myself or do i have to get it repaired? And if i do have to get it repaired, how much would it be because i don't have warranty on it.
  • Why does Youtube keep degrading quality on my iPhone? I keep trying to watch videos on YouTube and it keeps degrading my quality so much you can't recognize anything. Is there anyway to prevent this from happening? Are you sure? I can't find it anywhere. I'm using the newer version of YouTube on my iPhone 5