I do think smartphones are a lot of the problem. The kids have grown up not having to interact with anyone, so they rarely do. And they also don't know how, since they never had to learn. It's funny, as you can usually tell which students got their phones first from how they interact with other students.
And they still do hang out together a decent amount. Going to school sporting events, playing Fortnite at each other's houses, going out to eat, or even partying each weekend.
I see the loneliness issue creeping up more in the urban areas for the reasons listed above, actually. Or with those who grow up in an area and then leave it. Even if they come back, not all their friends will, and the people who stayed will have vastly different life experiences, which makes it difficult to make friends.
While I do see smartphones being an issue, as here kids don't really want to talk with each other but just be on their phones, even when "hanging out". That's what increases loneliness. Despite hanging out and doing stuff together, they're not interacting with each other nearly as much, nor on as deep a level.