I've done the grand search multiple times for a solution that allows me to work with my laptop from my sofa in a comfortable way. As evidenced by the rejects to the right, you can see that I've been looking for the optimal sofa table/desk/stand/tray whatever you want to call it (part of the problem I might add).
The Ergotron WorkFit-P Sit-Stand Workstation is the best solution I've found to date. Its articulating arm and platform are sturdy, stable, & large enough to hold my MacBook Pro as well as a full glass of wine without moving. You can tighten it up to be as ridged or loose as you want. It's light, durable, well designed, and thus far - proven to be semi-toddler proof. I can lift and spin it effortlessly out of the way in an instance all the while the platform is horizontal to the floor. I had an older version, similar to the Ergotron (however from a different manufacturer), but that one had a smaller platform and was much heavier. As you can see from the picture below, I've attached my USB Type C HooToo hub to one of the corners with double sided tape and it works marvelously. The workstation came with 2 different types of mounts. As you can see from the pic below, I've elected to drill a hole in my table to use the more stable mount - no regrets here, but definitely not for the feint of heart.