Also check your manufacturer’s app, such as Lenovo Vantage, Dell Optimizer, HP Command Center, MyASUS, or Acer Care Center. Many laptops have their own “adaptive brightness,” “ambient light sensor,” “presence detection,” or “power saving display” setting outside of Windows.
====================
If it only happens outdoors, also make sure the laptop is not overheating in direct sunlight. Some laptops will dim or shut off the display when the panel or system gets too hot. Try using it in shade and see if the behavior stops.