Apple has added a bedtime mode to the Screen Time tool to combat smartphone distractions. Google's version of Screen Time, called Digital Wellbeing, predates Apple, but a recent update is finally bringing Bedtime mode.
The new Bedtime mode is mainly a rebranding of the old "Wind Down" function in Digital Wellbeing, but it is quite analogous to the iPhone's eponymous function. When bedtime rolls around, your phone turns off notifications and even turns the screen black and white to help you unplug it.
Digital Wellbeing is part of Android, but is being updated as a standalone app. Google, Asus, Sony and several others include the unaltered version on their phones, but Samsung and OnePlus don't (although you can try sideloading it). Please check the Play Store page of the app to ensure it is installed and updated.
: Enable Digital Wellbeing
Out of the box, Digital Wellbeing can be accessed through the Settings app on supported phones. Search for "Digital Wellbeing" in your Settings app and tap on it in the results. If this is your first time using the feature, tap "View Your Information" on the next page.
Then search for "Bedtime mode" in the section Ways to disconnect . Tap it and you will get a short demo of the feature. Tap "Next" a few times and then click "Done".
You can adjust the time when the mode should start and stop, as well as the days of the week to activate the bedtime mode, or you can choose to enable the bedtime mode when your device is charging between the specified start and end times. In addition, you can choose to switch to Do Not Disturb mode at bedtime and remove color from the screen.