Either way, you replace the switch with a smart dimmable switch.
I mostly like the Shelly Dimmer. It will work the same as the switch that you hold down to change the lights dim level. You need that switch, coupled with the Shelly Dimmer. The one you turn will have to be replaced. You will also need a neutral at your light switch in the wall.
thank you. the lack of a neural might makes things a bit more complicated / expensive.
for someone who is not that technical, like myself, it might be easier to replace the bulbs with smart ones