I am running KDE Plasma on my computer and I noticed that whenever I am watching a video on my web browser the screen dims after a few minutes of inactivity, which is really odd cause that never happened to me before while watching a video on Plasma. If it is relevant, my web browser is Ungoogled Chromium and I am using the flatpak version since the AUR one takes ages to compile.
Is there any solution to this problem that does not require me to completely turn off the “dim screen” option manually while watching videos?