When you tell somebody to touch grass, you're basically telling them that they're becoming overly swept up in something on their screen to the detriment of their mental health and social wellbeing. It might as well be "go call your dad", because the gist is just for you to remove yourself from a situation that's clearly causing you to disconnect from reality, either to your detriment or the annoyance of people around you.
Like that's the baseline that's relevant whether you're saying it to some kid screaming in a video game lobby or some middle aged dude who's going off his rocker in the facebook comment section of his local newspaper. 'You're embarrassing yourself and you need to get some perspective, because the things you're saying don't make sense, and you'll see that if you walk away from the machine for a bit.'