Not to downplay the levels of addiction and how challenging it can really be for many. But one thing I've done recently is use `AdGuard` on my iPhone to begin blocking specific domains that distract me too much, and it was amazing how in a few of those cases, the problem just went away immediately.
I was expecting it to be a fools' errand to be my own gatekeeper. But just getting a "page won't load" error a few times, and suddenly I'm not scrolling Reddit etc. for an hour at bedtime. I also find myself gravitating towards more productive things to do. I'm equally as bored, but the quick jolt of brain drugs I get from Reddit now has to come from working on my purely-in-software microwave or whatnot.