If one knows that the walls and the ceiling came in wet contact with the workers, they should be made tahir, and one can offer the prayers in the mosque.
Based on compulsory precaution, the Friday prayer should be offered immediately after the two sermons. So it is not permissible to separate between the sermons and the prayer by the mentioned, based on compulsory precaution.