https://techyorker.com/how-to-fix-auto-lock-not-working-on-iphone/
How to Fix Auto Lock Not Working on iPhone in iOS 17