The way you do it is by figuring out a hobby you like and joining a group for it.
And for the naysayers who read that and harumphed, "internet" is not a hobby.
Maybe start by going to a local trivia night. Have a few drinks, eat nachos, join a team at a bar - usually just sitting next to someone and asking if they want to play is enough. Winning isn't the best part - it's trying to answer and laughing about it when you're "so close!" or "daaang, I wish I had remembered that!"
I bought a vintage motorcycle and went to a ton of meets this summer. I met a bunch of new people and bonded over the love of our quirky hobby. I even exchanged numbers with a couple and made friends.
I've also been going to local music jam nights. You bring your musical instrument, sign up, and play a song with 4-5 people you've never met. It's weird, sometimes magic happens, but most it doesn’t. But you always have people who want to chat.
There are even awkward anime meet-up groups if that's your hobby. I don't think it'd the best idea for people who are looking to socialize to get into another echo chamber, but those things are out there.
All that said, my biggest suggestion is to put your stupid phone down for like two hours and talk to people. "You miss 100% of the shots you don't take." -- Wayne Gretzky, —Michael Scott.