#1: “Lord, I do not want this temptation, take it away, I give it to you for the conversion of sinners.”
Feel free to repeat as often as necessary. It can take a while to train yourself to turn to this prayer.
#2: In front of the Blessed Sacrament or Crucifix or Sacred Heart image or Our Lady: Bring to the Lord the disordered desires of our heart or the sinful memories that plague us and pray: “Lord I give you this memory or desire and ask you to place it in your Sacred Heart and burn up in your love what is sinful and purify my heart.”
Feel free to use your own words, but I have found these prayers to be powerful.
-Fr. Ryan Browning