I know it is out of fashion in the new world of reactionary populist conservatives, but facts outweigh opinions. The social media mantra is "everyone has a right to their own opinions", but not all opinions have the same weight. Some opinions are supported by facts and some are falsified by them. Some opinions are wrong. People do not have a right to hold an opinion that is falsified by the facts.
The opinion that it is raining outside now does not have the same weight as the opinion that it isn't. Depending on the facts, one of these is wrong. The other is right. So let's weight the apparently majority opinion on this thread against some facts:
“You can’t be gay and be a Muslim”.
1. There are thousands, probably millions of gay Muslims. I know a few of them personally.
2. There are gay friendly mosques in France, Canada, USA, Australia etc..
3. Recently gay couples have been married in mosques.
4. Sydney has a “Queer Muslims” group. I saw their stall at the Mardi Gras fair day last weekend. I know many other countries have similar groups.
5. Until very recently (late 1970s), in Muslim countries that do not have a legacy of European colonial laws, homosexuality was not criminalised. Homosexuality was explicitly legalised in the Ottoman Empire (including most of the Middle East) in the 19th century, long before many Western countries. In Iran it was never illegal until 1979. In Indonesia, the most populous Muslim nation, homosexuality has never been illegal until very recently where it was outlawed in two provinces for Muslim residents of those provinces only.
6. European gay men used to migrate to North Africa (mainly Morocco) and the Middle East or the Greek Islands under Ottoman rule to escape persecution and stigma. e.g. https://www.gaytorrent.ru/details.php?returnto=%2Fmytorrents.php&id=1d2499d5cba28cbab9f5b89e8d356c2c02d21710dd948dad
7. There are very many examples of explicit homoeroticism in Islamic Art and literature.
8. There are many examples of Islamic rulers who were homosexual. One of the rulers of Cordoba had a male harem. Another (maybe the same one) had his wife cut her hair and dress as a man to be more pleasing to him. The first Mughal emperor Babur wrote in his memoir of his infatuation with a young man in his youth and his refusal to sleep with the wives that had been arranged for him because of his love for the young man.
9. In the majority of countries (including Muslim countries) where homosexuality is still illegal, the laws derive from inherited colonial European criminal codes that conservative societies have in many cases failed to reform, not from Islamic law. e.g. Bangladesh, Malaysia, Singapore, India (until recently), and many African countries inherited anti-sodomy laws from the British criminal code.
So clearly, the opinion “You can’t be gay and be a Muslim” is falsified by the facts. The opinion is wrong.