How to detect screen changes in desktop automation

I want to detect a specific screen change(any pop-up or new screen) in desktop app. I am running RPA in firefox browser on windows 10. Please let me know if the feature is available. Thanks in advance.

Hi, please see If {picture} then {do this} - #2 by admin

Essentially this is a DO… REPEAT IF loop with a VisualSearch command inside.

Thank you so much. I will try it.