Harry Styles dons full uniform to play gay cop on set of new film My Policeman

The first photos of Harry Styles in My Policeman prompted reports of rampant swooning, sweaty palms and skipped heartbeats.

Styles is playing in one of the lead roles for the queer flick by Amazon Studios, based on a 2012 novel of the same name by Bethan Roberts.

Set in Brighton in 1957, the movie follows cop Tom Burgess (Styles) falling for David Dawson’s Patrick Hazelwood, a museum curator.

But an embittered love triangle forms as Burgess marries Marion, a school teacher who will be played by Emma Corrin. When she discovers her husband is having an affair, she mounts a bid to have him arrested – homosexuality being still illegal at the time.

In one of the first sightings of Harry Styles in his My Policeman role, he was spotted in full 1950s-style police uniform while filming a scene with his on-screen love interest, Dawson, in Brighton.

Harry Styles and David Dawson on a film set, masked camera crew surrounding them

David Dawson (L) and Harry Styles are seen on the film set for My Policeman. (Neil Mockford/GC Images)

(Neil Mockford/GC Images)

(Neil Mockford/GC Images)

Styles was also spied earlier this week sharing a kiss with Corrin while filming in Worthing, the Metro.co.uk reported.

On both occasions, the “Watermelon Sugar” hitmaker’s aggressively thirsty fanbase went into overdrive.

Donning vintage police officer’s gear isn’t the only way Harry Styles is prepping for the role – he’s also said to be eager to “throw himself” into candid sex scenes with Dawson, 38.

Sources told The Sun that with the scenes, “not much is going to be left to the imagination”.

“Harry is throwing himself into this new role and is really excited about the challenge, even though it’s a daunting task,” they claimed.

The insider added that Styles “always wants to do things that people wouldn’t expect” and that his upcoming queer role will challenge people’s perceptions of him.