ANSWER:
This depends on the situation in your country. If there are many people getting infected, you should avoid praying in the masjid and give yourself a quarantine for a few weeks not only from the masjid but from all other things such as work and schools.