Let me preface this by saying I'm in my late 20s, and had struggled with pornography since my early teens. Nothing worked. I tried every method, youtube video, motivational content, etc. and no matter what, I kept failing. Recently though, I've had an extremely long period of no PMO, and here's what worked. Like I mentioned in the title, not everyone can do this. But it's the only thing that worked for me.
My method, if it can even be presented as one, is I got lucky enough to get the chance to find a wife and get married 6 months ago. In theory, I would think this would work with a dedicated sexual partner as well, even if you aren't married, I just didn't have sex until marriage.
What I did was. leading up to sexual activity with my wife, I made a commitment that I could hold. Because I knew I could not cold turkey it straight up. I had tried. I said "No matter what, I will not masturbate to pornography". I allowed myself to continue watching, and to continue even fantasizing about the videos. However, every actual sexual activity had to be done with my wife, no exceptions.
I will admit, this still was challenging. I still had times where I failed and looked up videos basically out of habit. But if I got in a position where I had to release, I initiated with my wife. Over time, my brain was retrained by this. With no effort, gradually, I stopped getting any sort of "hit" from the videos. I didn't have to white knuckle it, because my brain had started to associate actual "release" with real world activity with my wife. Now, even videos that would have been extremely triggering to me just don't seem that interesting. The interest went away naturally.
It was a struggle, and I definitely felt bad that there were moments during sexual activity where I was thinking about videos instead of being in the moment, but I understood that this was just part of the process of breaking the addiction. I was also extremely fortunate to have a wife that I could speak to about my struggles, was gracious with me in the process, and was willing to have sex/do something sexual basically whenever I wanted it.
I'm not presenting this idea as a brag, and again, I understand this isn't something that can just "be done". People have had success without having a wife/sexual partner. I just know this worked for me in a way nothing else did, so I felt I needed to mention it as an idea for other married men/men with partners to try, as I know there are plenty of us in that boat. and any idea that could possibly work for people that have tried everything else, I feel like is worth mentioning.