An attempt to humiliate Alexandria Ocasio-Cortez as she was sworn in as the youngest ever US congresswoman has backfired impressively, prompting a huge outpouring of support for her.

A 30-second video was posted by a Twitter user called AnonymousQ, showing Ocasio-Cortez dancing on the roof of a building while in college.

“Here is America’s favorite commie know-it-all acting like the clueless nitwit she is,” read the post, with the user, who has since deleted their account, claiming it was a “high school video of ‘Sandy’ Ocasio-Cortez”.

But instead of embarrassing Ocasio-Cortez, who was elected to represent New York’s 14th congressional district in November, the video has bolstered her popularity, with many people on social media praising her for being joyful and having fun.