My iPhone overheats even with Location Services and Background App Refresh turned off. Is it time to replace the battery?
A truly overheating iPhone shows a temperature warning and stops working until it cools; otherwise it's just warm. If you see the warning, get it out of the sun, restart it, and check for apps working the processor hard. To see if the battery needs replacing, check Settings > Battery > Battery Health.