Hi Dr.Anmar,
Thanks for contacting Apple Support Communities!
We understand that your iPhone temperature increases while charging and won't charge to 100% until it cools down.
It's not unusual for the temperature of your iPhone to change while charging it. Your iPhone has built-in components to protect itself if it gets too warm and to prevent overheating. You can learn more about what you can expect from your iPhone temperature here: If your iPhone or iPad gets too hot or too cold - Apple Support
"If your device gets too warm
iOS and iPadOS devices have built-in protections to prevent overheating. If the interior temperature of your device exceeds the normal operating range, your device will protect its internal components by attempting to regulate its temperature.
Avoid these conditions and activities because they might change the performance of your device:
- Leaving your device in a car on a hot day.
- Leaving your device in direct sunlight for an extended period of time.
- Using certain features in hot conditions or direct sunlight for an extended period of time, such as GPS tracking or navigation in a car, playing a graphics-intensive game, or using augmented-reality apps.
If the interior temperature of your device exceeds the normal operating range, you might notice these changes:
- Charging, including wireless charging, slows or stops.
- The display dims or goes black.
- Cellular radios enter a low-power state. The signal might weaken during this time.
- The camera flash is temporarily disabled.
- Performance slows with graphics-intensive or augmented-reality apps or features.
Additionally, if you're navigating, your device might show this alert and turn off the display: "Temperature: iPhone needs to cool down." Navigation still provides audible turn-by-turn directions. When approaching a turn, the display will illuminate to guide you through the turn."
We hope this helps you.
Take care!