I want to open a popup when the value of the Perspective tag is changed

Bind the tag to a custom property in the session or view where you want the popup. Add a change script to that property. Do not use a gateway tag change or tag value change for UI operations.