Battery percentage won't increase unless shut down
I have an iPhone 12 Pro, and I noticed that the battery percentage won't increase. My charger is working fine, as I've tried to charge other devices with it, so the issue lies with my phone. I've tried restarting my phone multiple times, and it doesn't help. The only thing that increases the percentage of my battery is when I shut it down from my settings, but even then it charges very slow, whereas it charges other devices fast — I'm using an original cable. No, my battery optimizer is not switched on either. What should I do?
iPhone 12 Pro, iOS 15