1. Never hold the phone or type messages while driving. It's dangerous and against traffic rules.
2. Use a mount on the dashboard or air vent where it doesn't block your view or the airbags.
3. Set the destination in Google Maps before you start moving.
4. Use voice: "Hey Google, call..." or Siri, and a Bluetooth car kit or earpiece for calls.
5. Turn on driving focus: iPhone Driving Focus, Android Driving mode (Samsung Modes, Driving) to silence messages.
6. Don't leave the phone on the dashboard in the sun when parked. Heat damages batteries.