GPX Viewer supports adding WMS maps. You just need their url addresses. For more information about WMS maps, you can refer to this website: https://wiki.openstreetmap.org/wiki/WMS.
Below are step-by-step instructions on how to add a custom online map on the track/route line.
Below is a video showing the instructions above: