Some phone mounts can attach to your dashboard via either an adhesive or strong suction. Adhesive mounts are often sold covered, so you will need to peel back a thin layer of plastic for them to stick. If you are using a suction mount, try to wet the surface, which should help with suction strength.
Low-quality phone mounts may not suction to your car’s dashboard very well, especially when it gets hot.