If that’s the case, you need to look for a battery replacement. It’s commonly known that after 500 charge cycles, the battery becomes basically unusable. Have you noticed that the iPhone turns off in the cold, quickly discharges in a couple of hours, or turns off when the battery is 20-30% full? Unfortunately, that means the battery has a problem.
If this is the case, the problem is a bit tricky, and you’ll need to contact Apple Support for extra help.
This gives the integrated circuit (IC) a lot of stress. Why does this problem happen? It usually happens because you’re using your iPhone while charging or, in some extreme cases, by leaving it connected to the charging network overnight. Otherwise, the problem might come from the iPhone itself. Cables aren’t made to last forever, and you might need to change yours. Make sure to check the charging cable too.
If that doesn’t work, try using another charger.