Can't speak for Apple, but on Android, there are plenty of good, free options
You just have to make some changes to your phone's settings to allow it, but most of the apps will tell you how to do that. Also, this only applies to phones. Not sure if GPS emulators are a thing for laptops/ desktops.