HONG KONG — An Instagram account featuring a comic strip with gay Muslim characters disappeared on Wednesday, days after Indonesian officials threatened to block the entire social media platform in the country because of an uproar over the comic’s content.

The episode is the latest flash point in a slow-burning battle over morality and civil rights in Indonesia, a Muslim-majority nation. Even as gay, lesbian, bisexual and transgender people in the country assert themselves, others support an ascendant Islamic movement that has embraced some homophobic policies and portrayed L.G.B.T. people as a threat to national harmony.

The Instagram account, @Alpantuni, first appeared in January with the tagline “Gay Muslim comics for people who are able to think.” Its Indonesian-language comics addressed gay identity and religious bigotry, and depicted men with their shirts off and in bed together, though never fully nude.

The account prompted a flurry of criticism on social media in the country, with some accusing the artist of pornography or blasphemy.

“There are a number of other reasons why an account may no longer be accessible, including, for example, if the account holder deleted the account, deactivated the account or changed the account user name,” said Ching Yee Wong, the company’s head of Asia-Pacific communications.

Instagram did not respond to a question about whether it had previously taken down accounts with similar names, and the owner of the @Alpantuni account could not be reached for comment.

There was speculation that the account might be based in nearby Malaysia.

Among other suggestions, Instagram’s community guidelines instruct users to refrain from posting nudity and to “always follow the law.” The company said on Wednesday that people should report Instagram content that violates the guidelines or “makes them feel uncomfortable.”

News of the ministry’s letter to Instagram was first reported in English on Tuesday by Coconuts Jakarta, a branch of a news outlet that covers parts of Southeast Asia.

Indonesia, the world’s largest Muslim-majority country, has an ethnically diverse population of 260 million people, about 90 percent of them Muslim.

A longstanding — if grudging — tolerance for homosexuality in the country began to erode in 2016, when the authorities, under pressure from right-wing Islamic groups, began arresting gay men in record numbers.

In 2017, two men accused of having sex with each other in Aceh, a semiautonomous Indonesian province that has imposed a strict version of Shariah law, were sentenced to 85 lashes in public.