It's nearly a year now that I am using Ubuntu 22.04 (and that the Firefox from Mozilla has no problems) so I don't remember all the details. I also tried using the apt version of Firefox as others also suggested. But it eventually got automatically replaced with the snap version after an update.