Normally its not comparing yourself to others but its jus the attraction to nice things and a better life.
Pressure from society becomes so much (I wish my family was...I wish I had his/her car...His living the life cause of...) social media contributes to a unhealthy self image "I wish I was as pretty as her" she says its not always all rainbows and sunshine people never bring the thunderstorms to light. You shouldn't compete nor compare with the next person and you shouldn't wish for his life you never know what demons his facing.
Social media is jus a lot of people trying to impress people who dont care about them which at the end of day all becomes pointless.
Society builds a lot of negative vibes not everyone will be happy for you cause of the I wish I had his life people tend to become bitter and envy you unfortunately its negative energy breeder.