Federal authorities in Puerto Rico have ordered Gov. Ricardo Rosselló and 11 of his aides to turn over their cellphones as part of a growing probe into his leaked offensive chat with advisers, officials said Tuesday.

A spokesman with the US territory’s Department of Justice said warrants for the phones were issued overnight.

The rep would not identify whose phones were being targeted, but CBS said Rosselló was among the dozen.

Justice officials added to Fox News that the warrants were tied to the beleaguered island’s so-called “chatgate.”

The development came as Rosselló’s top ally in Washington, DC — the head of the agency that represents Puerto Rico in the States — revealed that he has resigned amid the turmoil.

“It is very sad and disappointing for me to see the events and revelations that have come about in the past few days, which directly contradict my personal and professional values and ethics,” George Laws Garcia, acting director of the Puerto Rican Federal Affairs Administration, wrote in a letter dated Saturday and addressed to Rosselló.

“Unfortunately, these circumstances make it impossible for me to continue working for you and representing the government of Puerto Rico, at this time,’’ Garcia said in the letter, a copy of which was tweeted out by the co-host of the political podcast “In the Thick,’’ Julio Ricardo Varela.

Meanwhile, Tuesday marked the 11th day that the island has been rocked by massive protests since the publication of the profanity-laced, homophobic and misogynistic phone chats between Rosselló and aides.

In one chat, Rosselló called former New York City Council Speaker Melissa Mark-Viverito, who is from Puerto Rico, a “whore” in Spanish. He has since apologized.

Rosselló’s chief fiscal officer, Christian Sobrino Vega, also sneered in another missive that Ricky Martin, the island’s gay superstar singer, “is such a male chauvinist that he f—ks men because women don’t measure up.”

Some of the outrageous messages even mocked the victims of deadly Hurricane Maria, whose devastating effects are still being felt on the debt-riddled island two years later.

Rosselló, who refused to step down Sunday, which ramped up the protests against him, appeared on Fox News on Monday to say he’d already apologized and was moving on.

But news host Shepard Smith wasn’t having it.

“The corruption was in your own administration,” Smith said. “Five people who were on those chats, you got rid of all of them, they are now out of the government, but you remain. Doesn’t the buck stop with your office, Governor?”

Rosselló responded, “I was elected by the people of Puerto Rico.”

Smith replied, “And those people are on the streets of your biggest city today saying, ‘We want you out.’”

When the TV anchor pushed Rosselló to name one person who has publicly defended him, the governor said Javier Jiménez, the mayor of San Sebastian.

Jimenez later told Fox, “It’s not true that I support the governor.”

Police in riot gear ended up firing tear gas at anti-Rosselló protesters in the capital city of San Juan on Monday night to beat them back.

Puerto Rico House Speaker Carlos Mendez, who is in Rosselló’s own party, has already called for an independent panel to weigh whether the governor should be impeached over the messages.

The governor’s administration has been dogged by corruption allegations, too, in which six people have been charged with crimes including conspiracy. The allegations involve millions of dollars in federal health care and education funds.

The island is reeling in debt to boot — with at least $74 billion in unpaid bills.