This is because Youtube has software that communicates with the phone settings you have.
Implementing this for our app would be a great idea. I will let the team know.
However, for now you will have to edit your phone's display settings while using the app to keep the screen from dimming. Sorry about that! We are always looking to improve your app experience.
If you have any questions, comments, or concerns, please contact us.