When my son was young, we used to take his phone from him at night so he wouldn't stay up and watch YouTube.