Car sockets give power that jumps up and down, especially when the engine starts. Cheap car chargers pass that on to the phone.
1. Use a car charger from a known brand with overvoltage protection.
2. Unplug the phone when starting the engine.
3. Keep the phone out of direct sun on the dashboard. Charging in a hot car wears the battery quickly.
4. Use a short, good quality cable so it doesn't get trapped in doors or seats.
5. For taxi and boda riders charging all day, a good car charger with 18W or more and a holder that allows airflow is worth it.
6. Don't leave a charger plugged into the socket when the car is parked for long. Some keep draining the car battery.
If the car charger gets very hot or smells, stop using it.