Ion-content --offset-top issue

When does the offset get calculated?
Any solutions to this issue?

For some reason I have an --offset-top of 0 when returning to this page after a payment.
If I leave the page and come back it is back at --offset-top: 56px

See the two images. I put a fix in for this before to hardcode it to --offset-top: 56px!important and it worked but messed up when on later version iPhones. See: Ion-toolbar color issue on iphone 12

I also tried the --offset-top: 1000px!important and it seems to work on all iPhones but creates a little bit of a scroll if using web. Seems like a pretty horrible hack.