Weird window glitches after suspend

I have been having an ongoing issue with “screen corruption” after wake; and now I am having this ghosting issue.
Firefox was never an issue before, but I think it started happening after I enabled hardware acceleration, so it seems like a GPU issue.

I’ve done some research and I’ve found on askubuntu: “questions/1273399/problems-with-chrome-browser-after-suspending-the-computer-on-ubuntu-20-04” (sorry I can’t post links) which seems to work for chrome, but I don’t know if I could apply it to Firefox, and all the chromium based apps I run.

Also VScode has a very similar issue to the chromium one.

I have a youtube video that I can’t post of it…
And I have a screenshot of the chromium issue that I cannot post right now.