Inspectors made unannounced visits to thousands of toilets across the UK.