What are you using to charge your iPhone?
It is normal for the phone to get warm when charging, because your pushing electrons into the battery. That operation has heat generation as a byproduct. To reduce heat, you would need to charge slower
You can also disable Background App Refresh
for apps that you don’t need to update continuously, or push email. Note that these changes would apply both on and off-charger.