Supergirl and Nia Nal – aka Dreamer – are set to face off against a transphobic villain in Supergirl.

Dreamer (Nicole Maines) is the first transgender superhero on television, and in upcoming season five episode 'Reality Bytes', she will fight back after her roommate is attacked.

According to The CW's official synopsis: "Dreamer steps up to protect her community after her roommate is viciously attacked – Nia's (Nicole Maines) roommate, Yvette (guest star Roxy Wood), is attacked by a man targeting Dreamer because he doesn't like that Dreamer is transgender and wants her to quit being a superhero.

The CW

Related: Supergirl bosses unpack that *big* Kara-Lena moment in 100th episode

"Determined to protect her community from additional harm, Dreamer refuses to give into his threats and puts herself in the line of fire to stop him."

It adds: "Supergirl (Melissa Benoist) stands by Dreamer and enlists additional help from Brainy (Jesse Rath). Meanwhile, Alex (Chyler Leigh), J'onn (David Harewood) and Kelly (Azie Tesfai) attempt to rescue a man stuck inside a virtual reality escape room."

The CW

Related: Batwoman just broke the Arrowverse with a huge plot hole

Dreamer first joined Supergirl last year, with Maines also making history as the first trans actress to play a superhero on US TV.

"I've been trying to conduct myself on set like this isn't the only thing I'm thinking about, but it's all I'm thinking about," she previously said.

"That's when it'll really sink in that we have a trans superhero."

Supergirl airs on Sundays at 9/8c on The CW in the US. Sky One and NOW TV air the show in the UK.

Digital Spy now has a newsletter – sign up to get it sent straight to your inbox.

Want up-to-the-minute entertainment news and features? Just hit 'Like' on our Digital Spy Facebook page and 'Follow' on our @digitalspy Instagram and Twitter accounts.

This content is created and maintained by a third party, and imported onto this page to help users provide their email addresses. You may be able to find more information about this and similar content at piano.io