Charge the iPhone fully
Replace a failing battery
Disable Auto-Lock or set it to a longer time
Turn off Low Power Mode
Update iOS
Force restart the iPhone
Check for overheating and let it cool down
Remove problematic apps
Reset all settings
Restore the iPhone from a backup
Contact Apple Support or visit an Apple Store
