flatpaks are sometimes funky with highly optimized software - they tend to need lower level access to hardware, which flatpakking sometimes gets in the way of.

check if you have hardware acceleration, maybe other stuff? `about:support` has lots of info, I've had to tweak a few things routinely to get browsers working like their native counterpart.