Change Block Name dynamically

I wanted to know if there is a way to dynamically change the name of a Block with say a macro (or otherwise), while the app is running?

Same issue here for me

Not sure if it will lead to success, but if you look at the generated page, then locate the class that is used for the block. Then use javascript to change it. I don’t have a full working sample, but this is the only way I can think of.

My JS is weak, but worth the struggle. Will try. TY