ANSWER:
You must not donate to Masjids and islamic institutions that follow innovations and corrupt aqeedah as this would be collaborating and assisting in haram. It is best for you to sponsor an Imam who would revive the sunnah there and ensure that he spreads the correct teachings of Islam.