How to increase the size of a Static Mesh using a real-time slider

Hello everyone, I’m new to unreal Engine 5.

I want to make my cylinder grow along the X and Y axes using a slider. I somehow made it work, but all the logic is on the actor, I want to transfer it to the widget. Please tell me how to do this.
Thank you in advance

Screenshot_1

I put the wrong photo on the top one, here is the correct one