If your screen never goes off, you can check "Auto-Lock" setting:
On iOS:
- Go to Settings on your phone.
- Tap on Display & Brightness.
- Tap on Auto-Lock.
- If the Never option is enabled, tap on another timing you prefer.
On Android:
- Go to Settings on your phone.
- Tap on Display.
- Tap on Screen Timeout.
- Choose the limit you want or if the Never option is enabled, tap on another timing you prefer.