Can has bubblewrap?
If it's a linux system and there is bubblewrap installed, instead of launching firefox directly generate a bwrap command(example from the Arch Wiki: https://wiki.archlinux.org/title/Bubblewrap#Firefox) and launch within the sandbox.
Watch out for interactions with AppArmor, crashes... probably a little harder than it looks.