We'd take devices and lock them up, but in the middle of the night while we were asleep he'd find a way. He'd plan it out during the day. He'd borrow his friends' school Chromebook, hide it in his room, download videos for offline viewing, and then wake up at 1:00 AM and binge watch.
We set up security cameras and would punish him when we caught him, but it didn't matter, because all he wanted was to watch videos, and no punishment mattered. He was going to watch them anyway. We locked devices in a safe, and during the day he'd figure out how to pull up security video and get an idea of the combination, and try every one close to that until he got in.
We considered locking him in his room at night, but rejected it because of safety and bathroom issues. Eventually we had to set up alarms around the house that would wake us up every time he got up. It took years of our sleep and mental health suffering, but we eventually broke him of it. Or he grew out of it. Who knows.
Technology is ubiquitous today. The schools require it. Society demands it. It's like if every house had a heroin dispenser. How would you prevent a junkie from getting their fix?