quoted from: https://forums.raspberrypi.com/viewtopic.php?t=359204
I'm using the camera 2 module, but my workaround (for chromium, it does not work with firefox) should work for the module 3 too. Might need to change resolution and pixelformat if module 3 can't output YUY2, but I cannot confirm this until I get the latest camera myself. Basically I use gstreamer to pipe raw camera output to virtual camera device on v4l2loopback, it introduces a small overhead of course and chromium doesn't have access to camera controls which you need to manipulate via the pipeline, but otherwise this works really well for me. I have tested this method with fresh install on Raspberry Pi 4, with camera module 2 and Raspberry Pi OS 64-bit 10 Oct. release:
Steps for my workaround:
install gstreamer and necessary plugins:
sudo apt-get install -y gstreamer1.0-tools gstreamer1.0-plugins gstreamer1.0-libcamera