Keeping a battery at 100 percent all the time wears it out faster.
1. iPhone 15 and newer: Settings, then Battery, then Charging. Choose a limit such as 80 percent. The phone stops there.
2. Older iPhones: Settings, then Battery, then Battery Health and Charging, then turn on Optimized Battery Charging. It learns your routine and finishes charging just before you usually unplug.
3. Avoid charging in a hot car or under a pillow. Heat ages batteries more than anything else.
4. Use a good quality charger and cable. Cheap ones can overheat the phone.