Wifi/zigbee protocol device

Greetings to you all.

I want to know between WiFi and zigbee protocol device which one can be controlled locally without the internet or are there option to control those devices locally?

You can always control zigbee locally.
As for Wifi, it depends on, the devices, integrations, …

Every esphome device can be controlled locally without internet