When you talk about your variables, I assume you’re using the Global variable Interface Asset. Since this is 1 way out of a thousand to get some variables, especially when you start creating your own Interface Assets, making a generic mechanism here seems pretty complex.
A hint I can give you: When I create an XP with lots of variables (can be properties of a Web API IA), I create an Experience layer with:
- all my texts bound to the variables in a group with a rectangle background
- a toggle button that show/hides that group