Shopify themes now allow you to add sections to the header and footer, so it's a good idea to add a "Back to top of page" button. (If you have other modals to display, such as chat or email newsletter forms, you'll need to be careful with the positioning.)
How to Add a Back to Top Button to Your Footer

