We need the Tiktoks of the world to realize their responsibility: users get addicted to the apps in order to numb their feelings of loneliness. So we'd need an intervention within these apps that makes them unbearable for the lonely, combined with a healthier way to engage with loneliness.
Imagine TikTok asking you "you've scrolled for 30 minutes. You might be in a loneliness spiral. Write down the name of someone you would like to be closer to."