Duplicate the theme first, make changes on the copy, check it on a phone and a computer, test the cart, then publish when you are happy.
Make a copy
In your Shopify admin, duplicate the current theme. Name it with the date. This gives you a version to go back to.
Work away from shoppers
Edit the copy and use the preview link. Shoppers keep seeing the live theme while you work.
Check the buying path
Open a collection, open a product, choose a variant, add to cart and go to checkout. Do this on a phone as well as a computer.
Check your apps
Some apps add code to one theme only. Reviews, upsells and tracking are worth checking on the copy before it goes live.
Write down what changed
A short note with the date saves hours later when something looks different and nobody remembers why.