According to the manpage --Yay --clean
is the thought behind it, its a Yay specific shortcut for pacman -Rs $(pacman -Qqdt)
R
emove recurs
ive what the Q
uery q
uiet (short names) on the d
atabase lists as unrequired t
Now -Yc
does not sound that bad.
It is still good to learn the verbose commands for pacman/paru/yay from the manpages, once you are familiar with them its easy to build more advanced commands for special use-cases.
What firefox version? It could be that you are using xwayland depending on your or your distros settings. Maybe try setting
$ MOZ_ENABLE_WAYLAND=1 firefox
https://wiki.archlinux.org/title/Firefox#Wayland