What's the easiest way to lock my kids phone?

Screen Time on iPhone lets you set downtime schedules and it’s hard for kids to bypass if you set a separate passcode. I’m here for different reasons myself but that feature seems pretty solid for what you need.