Possible reasons are as follows:
The voltage is unstable when charging
When the mobile phone is powered on, it will generally open the power monitoring and detection program. If the program detects the instability of the vehicle power supply voltage, it will prohibit the power supply.