Praise be to Allah.
You should pray in the mosque, in congregation, because praying in congregation is obligatory, and you should prostrate in the manner that you are able, even if it is by gesturing. In this case you will not be regarded as having failed to prostrate.
This answer was given to us by Shaykh ‘Abd al-Rahmaan al-Barraak, and we have paraphrased it.
And Allaah knows best.