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.