I built folding sawhorses.
They’re adjustable in height using a rope, fixed at one end.
When I need more temporary flat surface, I put a piece of plywood on top.