Since social media platforms are using the same techniques as gambling firms to create psychological dependencies, it is a lucrative opportunity for the pharmaceutical industry to develop a drug that would break the cycle of addiction. Just think of it: a drug that would counteract habit-forming modes of behaviour and, if universally medicated, benefit societies by freeing them from commercially-induced compulsions.
However, the drug itself would be a form of dependency. Another way would be to have a mutually-supportive, societal belief system. Unworkable, because creeds and their adherents are open to manipulation. No, individuals and societies will only become truly free when a majority of people individually permit their psyche to recognise and counsel liberation from all forms of insidious servitude.