Fire extinguishers in the car?

Hello I wanted to quickly ask what you think about having a fire extinguisher in the car. I would still have one at home but I have no idea if the part survives the car ride and the heat. Should I rather leave it or are the things built so that you can install it in the car? Thanks and greetings