optimization settings to limit how long your phone stays at 100 percent charge.
On iPhone 15 and later: Go to Settings > Battery > Charging, and pick a limit from 80 to 100 percent. On older iPhones go to Optimized Battery Charging under Settings > Battery > Battery Health & Charging. On Pixel phones: Settings > Battery > Battery health > Charging optimization, then Adaptive Charging or Limit to 80 percent (Limit to 80 percent is on Pixel 6a and later). And finally on Galaxy phones (One UI 6.1