According to Apple and many experts, it is recommended to keep an iPhone battery between 30% and 80% charged for optimal battery health. Topping up to 100% isnt optimal, although it wont necessarily damage your battery. Its also best to avoid extremes, such as letting the battery reach 0% or consistently charging it to 100% . Apple recommends doing a complete 0-100% charge about once a month to keep the battery in good shape. Additionally, its important to use high-quality USB power sources to charge your iPhone.
Its worth noting that some users have reported success in maintaining 100% battery capacity by charging their iPhone only when it needs it, rather than charging it overnight. However, this approach may not work for everyone and may not be necessary for most users.