GPS is not override on VPN tunnel (iphone and android)

How I can override GPS on ( wireguard, l2tp, pptp, sstp, openvpn) VPN tunnel?

When I turn on wireguard on my iphone or android phone its not updating location of my VPN server but all the traffic is coming from vpn tunnel.

GPS has nothing to do with your Internet connection.

Your GPS location is determined by your device detecting signals from the GPS satellites and working things out from there. Some additional information to determine your location more precisely can be done through your Internet connection but isn’t required.

There are applications for Android that allow to imitate any geolocation you wish, not only per GPS data but also the WiFi list. You have to enable developer mode and allow this imitation there. Google it up, I could find it earlier this year, and it indeed worked.