Real-time monitoring of polarization state deviations with dielectric metasurfaces