I'm on the fence about this, though if the success of other people really is sending someone into a toxic spiral of envy and bitterness, then stepping back from the source is probably a good short-term measure.
Long-term though, that tendency is an issue which needs addressing through therapy. Because it'll occur again and again throughout life, and not just on social media - if it's a close friend or family member evoking those bitter feelings, it could be enormously hurtful on all sides. Finding ways to soothe that without severing contact is important.
Myself, I do feel bitter occasionally, but it's usually only inspired by those who are successful but ungrateful, or successful because they've deliberately stepped on the face of others in order to get there. (Plus, those who hoard obscene wealth to the detriment of society at large, though that's a whole 'nother conversation.)