If you want to control both lamps separately, you would have to have 2 such switches or a model with 2 channels. I myself have used a switch from Sunricher with 2 channels for something similar. There may also be a 2-channel switch from Sonoff.
As Mbuerki wrote, you would need 2 of these things. As 2 switches take up a lot of space, I would also recommend choosing a module like the one from sunricher, where 2 lines can be controlled.