YouTube's bedtime reminders joins the list of Digital WellBeing features the app has to help users cut down on their screen time.
"Bedtime reminders let you set reminders at specific times to stop watching videos and (you guessed it!) go to bed.
"You set start and end times in your Settings, including whether or not you want the prompt to interrupt a video or wait until the video is over. You'll also be able to dismiss or snooze the reminder," the company said in a statement.
The new feature by YouTube is already for both Android and iOS users and it will be rolled out gradually for all users soon.
As part of Digital WellBeing features the app has a Take a Break feature that lets users set reminders to take a break from watching videos. These reminders can be set to appear every 15, 30, 60, 90 or 180 minutes.
YouTube also has a Scheduled notification digest feature that allows users to combine all of the daily push notifications into a single combined notification.
Additionally, the app also has a Disable notification sounds and vibrations feature.
This feature ensures that notifications from the YouTube app are sent silently to users' phone during a specified time period each day.