Perhaps you’re trying out an app that searches for nearby stores or restaurants in another city, wanting to access services that are only available within a specific country or region, or playing a location-based game. Whatever the reason, sometimes it’s useful to be somewhere else as far as your smartphone is concerned. The good news is that with the right tools, it’s not difficult to spoof your GPS location.
But of course that process is a LOT easier when using an Android phone.
It’s important to keep in mind that this process isn’t foolproof, and can have unintended side effects. For example, while you’re running an app that fakes your GPS location, it will affect built-in services like Find My iPhone and Find My Android because the location of any nearby AirTags will be misreported, and your phone will possibly even supply an incorrect location to emergency services like 911.
See https://www.digitaltrends.com/mobile/how-to-fake-the-gps-location-on-your-iphone-or-android-phone/