Charging Iphone 13 but the battery is not going up unless turned off
I just bought my phone, so this is my second time charging it. The first one was ok but right now, I charged it at 28% and it keeps on coming down to 25% and stays there. An hour passed and it's still on the same percentage. I tried turning it off then, the battery went up. But if this is the case, since I cannot see the percentage when it's off, then I just need to turn it on and off again just to check. Is there any problem with my phone? Or should I do something on the setting?
iPhone 13, iOS 17