What's the best way to lock your child's phone at night?

My 12-year-old keeps sneaking their phone into bed and staying up past midnight watching videos, which is really starting to affect their grades and daily mood. I have tried just taking the device away before bedtime, but it always turns into a huge nightly argument that I honestly do not have the energy for anymore. Does anyone know of a reliable way to automatically restrict their device access during certain hours so I do not have to manually confiscate it every evening?

I feel you, kevin82, I’ve been there too - my son and I had the same issue last week, but then I discovered Parentaler, which allows you to set custom schedules to lock your child’s device, so you can ensure they’re not using it during bedtime or other times you deem inappropriate. With Parentaler, you can automate the process and avoid those nightly arguments altogether.