It's always interconnected.
People do drugs in general more often when their life situations necessitate feeling like they need the help. It's a coping mechanism. The only reason why we attack drug usage with such fervor compared to other, more socially acceptable things, is because they have a faster, more immediate, and more drastic effect.
When you feel your life is going well -- work is good, you're not crunched for money, your housing is stable, your diet is good, etc. you rarely feel the need for any kind of relief. When things start getting shaky or insecure, that kind of escapism can provide relief to people. The downside obviously is that a lot of things can be addiction-forming and cause a feedback loop where the drug use makes the overall situation worse, which feeds the drug use, which makes the overall situation worse, etc...
There are certainly people who kick off that cycle who weren't necessarily doing so as some kind of escapism, but that brings us neatly back to the discussion about opioid abuse in general. You use them to solve a pain problem, you become addicted, and it snowballs.
So it's easier to target the symptom of drug use than it is to address the underlying causes of financial, housing, food, and general life instability. Especially because in the US there is such a culture that's perpetuated of people being wholly responsible for their own actions, and that we see any failings as failings of the individual. Meanwhile drug abuse numbers continue to grow, streets continue to get lined with tents, and people would rather write those things off as personal failings rather than indicators of systemic problems.
The overwhelming majority of internet users do so on mobile devices (92%+) and the majority of internet traffic is to mobile devices (55-60% depending on who you ask).
It's also to the point where it's not uncommon for people to not even own a desktop or laptop anymore unless they have a specific need for it. Instead phones and tablets are much more common among people who only ever used computers for casual internet browsing.