How to center a group horizontally when its neighbor group is hidden?

I want the box on the left to be centered horizontally when the box on the right is hidden:

This seems to be impossible, so what’s the best workaround?

Editor: phil-testing | Bubble Editor

You can add a condition to the left box “when right box isn’t visible” and then add an ID Attribute.

Then you can do css formatting on it to center it.

Thanks @reger-alexander, with the CSS Tools plugin, you mean?