Step\/Method 1
This situation may be the charger problem, data cable damage or non-original charger may lead to the Apple phone is not supported, it is recommended to replace the charger.
Step\/Method 2
Secondly, check whether the charger interface is blocked by something, and you can clean up the charging port.
Step\/Method 3
There is also the option to restart the phone to resolve the problem, in the case of the iphone13 model: hold down the power button and either volume button at the same time, and swipe right to shut down.