Workaround for this on an iphone is to go to Settings, Sounds & Haptics, and turn off "change with buttons."
Your volume will not change when you get in/out of the car as a result. However you will not be able to change the ringer volume manually with the buttons on the side of your phone