When flying on commercial flights for the past several years I've used GNSS on my smartphone to track my location for fun. The signal strength in the cabin isn't ideal, but it's generally good enough to maintain a lock for most of the flight. However, on most flights I will lose my lock shortly after takeoff until we finish our ascent, and again as we begin our descent until shortly after landing. This doesn't happen every time, but often enough that I expect it at this point. And I've noticed it happen with several different smartphones I've owned over the years.
Is there any reason why GNSS signal should be weaker in the ascent and descent stages? Is it harder for it to track significant vertical changes? Is the signal weaker in some of the atmospheric layers we pass through? Does the aircraft itself put out signals that might disrupt my phone's ability to pick up GNSS signals? Or is this just confirmation bias?