Unless you kill them then you don’t stem the spread of anything by destroying the mosques. All you do is drive them underground.
Better underground than unfettered public access.