Adapted and merged the Anti Spill Cup Holder with the clamp from the Desk Mount Headphone Holder. Works to attach on areas up to 40mm thick.
I printed with ASA filament for it's UV resilience, but item can be printed in any other material that can endure it's environment.
Enjoy!