How do you know the opinions of any particular Muslim? There are plenty of Christians who don't believe the homophobic elements of Christianity. There could be just as many Muslims who don't agree with the homophobic elements of Islam. I wouldn't assume that all Muslims are homophobic any more than I would assume that all Christians are.
Maximum sentences in countries that criminalise homosexuality:
LIFE:

Gambia

Ghana

Tanzania

Sierra Leone

Barbados

Guyana

Bangladesh
20 YEARS:

Malaysia
17 YEARS:

Egypt
15 YEARS:

Antigua and Barbuda
14 YEARS:

Kenya

Malawi

Zambia

United Arab Emirates

Papua New Guinea

Tuvalu

Solomon Islands

Kiribati

Nigeria
10 YEARS:

South Sudan

Ethiopia

Dominica

Grenada

Jamaica

Saint Kitts and Nevis

Saint Lucia

Sri Lanka

Tonga

Zimbabwe

Saint Vincent and the Grenadines
7 YEARS:

Samoa

Qatar

Kuwait
5 YEARS:

Cameroon

Senegal

Comoros

Mauritius
4 YEARS:

Libya
3 YEARS:

Morocco

Togo

Uzbekistan

Guinea

Eritrea

Oman

Syria

Tunisia
2 YEARS:

Algeria

Burundi

Turkmenistan

Pakistan
1 YEAR:

Liberia
UNDISCLOSED:

Chad

Namibia

Swaziland
Countries that carry fines for convicted homosexuality:

Angola
Countries where a homosexuality conviction caries torture as a punishment:

Maldives - whipping for 20 strokes
Countries that carry the death penalty:

Mauritania - for Muslim men

Nigeria - northern states that approve Sharia Law

Qatar - for Muslims, for extra-marital sex

Somalia

Iran

Saudi Arabia

Yemen


Islamic State of Iraq and the Levent Afghanistan - where controlled by Al-Qaeda
https://www.outlife.org.uk/which-co...MItK-YzZLN7gIV0xx9Ch05HA2kEAAYASAAEgLZ9_D_BwE