Virtual Android devices will automatically connect to the network upon creation. However, if you deliberately disconnect a device and need to reconnect, you can easily do so.
On an Android device, you can disconnect and reconnect to the network by toggling the Mobile Data option in Settings -> Network and Internet -> Internet.
Although Android devices include virtual cellular hardware, but they don’t include virtual Wi-Fi hardware. This means that you cannot connect virtual Android devices to Wi-Fi.