We often need two tables in our house one small and one large both can be resolved by same table as shown in gif
Two rubber washers on each side resists the chances of falling down of holder.
It can be tightened into a range of thickness of tables. Adjustable threaded bolt is shown in the pic.
Another thing is handrest while using mouse.