A good way to change most any unwanted habit is to focus on developing a new healthy habit instead. This works for me and has worked with stopping compulsive stuff online.
I've learned that often when I only concentrate on stopping something (like recently no longer eating ice cream) I can end up feeling deprived, which makes me want to do the bad habit even more.
So I need to change my focus. I use the idea of "turning the mind" towards something else.
I could develop a new interest and reward myself for following through. I could make all this a fun thing, an experiment, a friendly challenge to myself.