There are multiple ways in which you can do this. Turn on Airplane mode, Turn off the share my location feature, stop sharing your location on the Find My app or use a virtual location or location faker.