Yup. You need a ‘neutral wire not required’ device.
I use one of these: https://www.amazon.co.uk/gp/product/B07Z373K81
Note that ‘no neutral wire’ devices might also need a capacitor as shown in the wiring diagrams included in the above Amazon page. This prevents random on/offs, buzzing, and flickering lights. If you don’t get one supplied with the device, I use one of these: https://www.amazon.co.uk/gp/product/B09W5FF3JX
Andy