I used an iPhone for several years exclusively as the nav/trip device using MapMyRide and more recently Strava.
It did work well, but, I finally did get a dedicated GPS device... Wahoo Element Bolt.
The phone is now safely stored away for use as a phone. I'd never go back, should have done it much sooner.