Visibility of individual elements based on dropdown

It is very easy to do so if you use templates define the UI objects in Vue or HTML, and then manipulate in the script area of the template

If you want to use the core stock UI nodes, then use ui_update messages with appropriate CSS.