Since 2017 the air quality has been greatly improved for Beijing. I just spent about three weeks there and the sky is surprisingly blue
The same thing also happens in other cities when there's a big central government visit (e.g. Xi Jinping) planned.