There is no technological solution to this. We have the equivalent of unlimited crack in everyone’s pocket 24/7 with no possible oversight over its use and no way to reel it back in. The genie has been out of the bottle for a while now.
Just like gluttony, there is no solution, only management strategies and they’re all very human.
Sensible education about these things starting at K1. Social and outreach programs for addicts. Etc