I've been able to use wireless debugging on an Android 11 phone over Visual Studio on Mac, mainly because it explicitly has 'Wireless Debugging' option.
But I couldn't find similar option on an Android 8 phone. So is it possible to debug wirelessly on older Android phones?
Yes, you can but its not completely wireless you will have to connect via USB once forward the port then have adb debugging over wifi More details here
adb tcpip 5555
adb connect device_ip_address:5555