If your GPS track is rubbish then your Strava data will be rubbish. Most phones seem to have fairly poor GPS in them.
This. If I leave my phone in a pocket, shit GPS track.
Rear Jersey pocket on road bike or top pocket of my bag on the mtb and its as good as a garmin.