My site always forgot previous scroll position and auto scroll to top when press back from product page in IOS. I had tested in Window and Android still good.
the problem is, that the main content of your side is not really preloaded. So the browser can not remember the Y-Scroll position.
E.G: If you press on a link in your footer, scroll down and then click page back it should work also in mobile.That’s while the footer is completey loaded.
You’re not writing what is your theme, so i give you a short instruction on the new DAWN theme:
Go to Online-Store → themes
Click on → Actions → Duplicate (just for a backup
If done click → Actions → EDIT CODE
Open your theme.liquid in LAYOUT
Find the section where youre header is loaded. Something like:
{% section 'header' %}
Directly after the section has been loaded, the main-content will be loaded e.g.:
Remove this line:
```javascript
After that your code should be shown e.g. like this:
```css
{% section 'announcement-bar' %}
{% section 'header' %}
{% comment %} DISABLED:
Click SAVE, Reload your page, try it.
Hope that works for you.
Have a great day,
Stefan