After more than 15 years covering everything Apple, it’s with a heavy heart we announce that we will no longer be publishing new content on iMore and the iMore forums will be closing as of November 1st, 2024.
Welcome to iMore! Have you tried a different charger. I had a colleague reporting the same issues yesterday morning (he blamed his iPhone for not getting to work on time). I had him use a different charger and it worked just fine.
It could also be your battery. Apple's iPhone batteries are designed to retain 80% of their original capacity for 500 full charge cycles. After that you're on borrowed time.