If by "detect movement of the car" you mean you do not want your iPhone to register vehicle movement, there are several possibilities depending on what feature is detecting it:
If Fitness/Health is counting movement
- Go to Settings > Privacy & Security > Motion & Fitness.
- Turn off Fitness Tracking.
- You can also disable access for specific apps that use motion data.
If Maps automatically detects driving
- Go to Settings > Privacy & Security > Location Services.
- Review location access for Maps, Google Maps, and other navigation apps.
- Set access to While Using the App or Never as appropriate.
If Driving Focus turns on automatically
- Go to Settings > Focus > Driving.
- Under Turn On Automatically, select Manually or disable automation.
If Significant Locations is tracking places you visit
- Go to Settings > Privacy & Security > Location Services > System Services > Significant Locations.
- Turn it off if you do not want iPhone learning your travel patterns.
If you want the iPhone to detect no movement at all
- Enable Airplane Mode and turn off Motion & Fitness.
- Note that built-in motion sensors (accelerometer and gyroscope) still detect movement internally, but apps will have limited access to that data.
What exactly is detecting the car movement (Health app, Maps, Driving Focus, CarPlay, Find My, automation, or another app) is not clear from your post.