...you go to a mosque to pray to Allah, not the God of the Bible.
Is that an order?
YOU might do that at a mosque. I have been inside the Dome of the Rock, and you can believe that I did not pray to the Muslim (faux) god.
The physical setting does not determine to whom one prays, does it? Then what about people in Auschwitz? Could they not pray to the Living God who was present in the midst of all that darkness?
I read that the Pope did not remove his shoes in the mosque, nor did he pray, but he remained quiet.