How is my phone getting email notifications?

The router is supposed to be blocking the WiFi VLAN from the internet, between a certain time frame.

When the screen is on, and I try to use the internet it doesn’t work. Yet if the screen is off, it works. Probably using cell data. Why doesn’t it use cell data when the screen is on?