Google Maps on mobile does not import GPX directly. On desktop, use Google My Maps: create a map → import → upload your .gpx file.
Better on mobile
For on-trail navigation, skip the desktop workaround — open the file in GPX Viewer on iPhone or Android. See open GPX on any device.