As to how to fix it: I use Forest to curb my mobile phone usage while at work and out with friends. I find that it helps me stay off my phone. You can also use the in-app coins to plant trees.
There may be legal ways to fix it as well. Here in the U.S., phone usage while driving is illegal in some states (aside from navigation, single-tap responses, etc.). You’ll get a ticket of ~$150 USD if police catch you. Canada is more strict: they’ve outlawed all handheld device use while driving.