I suspect a lot of these electronics are intended for indoor use and are not made of UV stabilized plastics. I'd rather have yellowed electronics than ones made brittle by being left outside in the sun.
Field service people seem to kill laptops in a couple years, although we're talking about hours long process not years so that shouldn't matter, anyway I don't recall the exposed tops of their laptops being worse than the bottoms of their laptops.
The scientific debate about plastic breakdown seems to be over centuries vs thousands of years exposures so mere hours will be fine.
https://phys.org/news/2019-10-sunlight-degrades-polystyrene-...