This app was mentioned in 5 comments, with an average of 3.20 upvotes
On Android, I use GPX Logger: https://play.google.com/store/apps/details?id=com.eartoearoak.gpxlogger&hl=en
On iOS I used to use Pocket Earth Pro, but there are simpler alternatives that just log to gpx right away.
The process is as follows.
When at home,
Some Gotchas:
Disclaimer: I am not affiliated with any of these apps.
I use this app. I have been using it to log my tracks when I go offroading to build out a library of trails for future use. Works really well and is very accurate.
https://play.google.com/store/apps/details?id=com.eartoearoak.gpxlogger&hl=en
GPX logger to record the track, then upload the file to OSM and trace over it.
I just use my phone with this app