How to stop randomly thinking about porn?

So as of now, I'm almost gonna be porn free for a week and so far I've been doing decent. Managed to reset my IG algorithm, using my imagination without telling on watching porn, and when I attempted to relapse I managed to fight back at the last minute.

One problem though, I would sometimes think about watching porn at random times of the day. I have no clear explanation as to how I would think about it, but what I need to do is to figure out how to stop thinking about porn.

So yeah, any advice would be appreciated.