Charging port is not working when my phone is on. Why I have to restart or shutdown my phone every time to charge.
Have you tried another charger/cable?
It is probably best to visit the service centre to investigate this type of issue anyway.
Yes I have already tried but no luck.
Ensure you are on the latest firmware Android 10 .103 and perform factory reset.
If this doesn't help at all, then only option is to go to service centre.
Please follow the above.