Not really a ‘hack’, as many have been quick to point out, more of a ‘tip’ or ‘good idea’. That said, it is a good one for those out and about in sunny climes. Use an IKEA Box as a Foldable Laptop Hood for Outdoor Use
It folds flat, so is easy to carry, doesn’t look too weird and obviously does the job. What more could you ask?