I believe i have embraced the opinion that life is hard. Both day to day life and finding your life's meaning and purpose and go about actualising it. Maybe having a constant mild depression leads me to this but nonetheless, after having learned about various philosophies about life, i believe that having a drive to attempt hard things and the willpower-discipline to resist easy pleasures is what makes someone a hardened but also fulfilled person. It can be summarised in a saying like "easy choices hard life; hard choices easy life" but of course it can be (i believe) neurologically and spiritually proven as well.
So seeing that having urges to PMO is a thing that can make me more ressilient in the long run, i sometimes even enjoy having them, depending on my mood of course. It's not a strategy to only recall this mindset when triggered. You do need to also change your enviroment, rules about phone usage and get rid of as much as possible of the cues that lead you to relapse. Having a busy life and many other things to think about also helps up to the point that they don't cause general anxiety. Emotional regulation is also an important aspect because we also fight this battle on the level of our subcinscious, eg. my last few relapses were either wet dreams or because of them (Dr Trish Lee has great videos on the subject).