Virtual machines have the same virtualized graphics drivers, if everyone used virtual machines for browsing and deleted cookies and cache, web tracking would be restrict to IP-based.
Edit: Oh, apparently there's built-in UI now: https://blog.mozilla.org/firefox/how-to-block-fingerprinting...
The matter of virtual graphics drivers cuts both ways, however. Multiple VMs in a host that use the same virtual graphics driver have the same WebGL fingerprint. So if you want multiple fully compartmentalized VMs on a given host, they must use different virtual graphics drivers. That is, Windows vs macOS vs Debian family vs vs Red Hat family vs BSD family etc.