WARSAW, Poland — It’s almost like in J.R.R. Tolkien’s “The Fellowship of the Ring.” Gandalf stands in the way of Balrog and tells him to “go back to the shadow” to buy time for fleeing Frodo Baggins and his companions.

But the scene is Warsaw, not the Mines of Moria. A Polish prankster dressed as Gandalf stops a city tram, which represents Balrog, and re-creates the scene with several others dressed as Middle-earth characters.

A YouTube video of the prank posted last week has gone viral with nearly 3 million views by Saturday, just days before Poland’s premiere of the “The Hobbit” film sequel.