I bought this foldable tray/table thingy at IKEA a few months ago.
I think it is mostly intended to be used as a table to put drinks and foot etc on while in bed.
I use it to write on when I’m sitting on the couch.
So much better than all my previous attempts at fixing this. Like using my laptop as a writing surface, or a large book.