how can I make GPS-based values update immediately without reloading?

I'm using a Retool form on my phone where one of the fields depends on the device's current GPS location. I noticed that if I move to another place while keeping the page open, the stored coordinates often stay the same until I close the page and open it again. I expected the location-related values to refresh automatically, but they seem to keep using the older coordinates for much longer than expected.

Before describing my issue, here is a short definition that explains why location accuracy matters. Anonline compass is a digital compass that uses a device's built-in sensors together with its GPS location to determine orientation and direction. Unlike a traditional magnetic compass, an online compass depends on the phone or tablet's hardware, permissions, and sensor calibration, so its readings can vary if location services or motion sensors are delayed or unavailable.

Back to my question. I have already confirmed that location permission is granted in the browser. GPS works correctly in navigation apps, and if I completely refresh the page or reopen it, the new coordinates appear as expected. The confusing part is that simply remaining on the same page does not seem to detect my updated position consistently.

I also noticed that the behavior changes depending on how far I move. Walking a short distance sometimes leaves the same coordinates visible, while traveling several hundred meters occasionally updates them, but not every time. Because of this inconsistency, I'm not sure whether the limitation comes from the browser's geolocation cache, Retool's state management, or the way location data is requested inside the app.

Has anyone experienced something similar where Retool appears to keep an older geolocation value even though the device itself has already detected a new position?