Questione,
I do not even know if you are male or female. So let me encourage you with what has helped me and was given to me by the Lord... Years ago the Lord showed me that things done in the dark doesn't hold as much power over you if you confess them to the LIGHT! So began the wildest journey of my Christian walk!!
In my car or when I knew I was good and alone, through tears and total humilation and embarrassment (even though no one was around), I began to describe outloud to the Lord what was in my mind and going on in my thoughts. (Your wife or husband does NOT need to hear it, it will only hinder them; God is the only one who can help us with this kind of stuff and He is there to listen and to help).
Yes, God, Jesus and the Holy Spirit know our very thoughts but we still need to confess them. We are too even bring them under obedience but since I didn't know how to do that except to bring them to Him and lay them out before Him and say, "Here is what I've been hiding from you all these years. Here is every last thought, Lord." I'll be honest, I was humilated beyond measure to give voice to what I kept hidden for years and do you know what? It began to not have the power or attraction that it did in the dark!
It will eventually take all the wind out of the devil's sails. It was a process and I still have to tattle on the devil at times! Praise God! I write this out of a humble heart and hope this might help you or someone else because I give God ALL the praise for what He has done for me... like the song, "It is no secret what God can do. What's He's done for other's, He'll do for you!!"
There is hope, bro or sis, do not give up - He is FOR you and not against you!
God bless,
Lisa