Custom Element - preview vs live

Of course. You need to implement the attribute using functions
attributeChangedCallback(name, oldValue, newValue)
and observedAttributes()

You set the attribute using Velo, both above functions do the job on Custom side.