Hey there,
How to maximize battery performance
“Battery life” is the amount of time a device runs before it needs to be recharged. “Battery lifespan” is the amount of time a battery lasts until it needs to be replaced. One factor affecting battery life and lifespan is the mix of things you do with your device. No matter how you use it, there are ways to help. A battery’s lifespan is related to its “chemical age,” which is more than just the passage of time. It includes different factors, such as the number of charge cycles and how it was cared for. Follow these tips to maximize battery performance and help extend battery lifespan. For example, keep iPhone half-charged when it’s stored for the long term. Also avoid charging or leaving iPhone in hot environments, including direct sun exposure, for extended periods of time.
If you feel that your phone has become warm while charging, this is normal, make sure you use Apple's original chargers to avoid any damage to the battery.
Good Luck!