Multiple window specific rules (profiles?)

Problem was I have two monitors or need to switch Firefox PIP window onto different mode. In default mode, it will be semi-transparent once it do not have focus. In second mode, it was always opaque. Second mode will be turn on automatically, when I place PIP window on big screen (external).
I do not wanna mess with settings to force window to behaves as I like. Also, applying temporary (by mouse scroll) semi-transparency is not sufficient solution, because once click on some window, settings was changed.