What are the steps to stop staring at women's bodies?

One of the biggest problems that I am going through in my relationship is that I always staring at women's bodies unconscious and my fiance say that I look like in a different world and this makes her feel uncomfortable and like she has been ignored.
I don't wanna hurt her feelings and I am looking for any solutions that can help me to stop this habit
Note: I am introverted and I don't feel great when I am out or with many people around
What are the steps to stop staring at women's bodies?
Post Opinion