I created this holder for our foam soap dispenser because it doesn't have to be placed on the washbasin.
This way, the soap dispenser is also further away from the edge and if the soap drips, it drips right down the drain.
You can get the duck here on Aliexpress: Duck foam soap dispenser
I used a screw to connect the two plates, of course you could also glue them together