I see similar behaviour (using EXWM in Emacs as my window manager). I don't have a solution beyond what I do: kill and restart Firefox periodically.
Alternative browsers either don't cater to all the needs or are just as bad (or worse, especially in terms of tracking etc.). However, what depresses me is the number of responses suggesting increasing memory etc. It's a sad state of affairs we have reached where simple web browsing (and it *should* be simple) requires such significant resources. Even banking should not lead to lag in window management. -- Eric S Fraga via gnus (Emacs 31.0.50 2024-07-16) on Debian 12.0