NEW YORK—Morgan Stanley is warning investors who have relied on the same cluster of mega-cap technology stocks since 2023 that the trade is getting crowded.

The S&P 500 climbed 20 percent from its April low to a record 7,620 on June 2, a rally fueled by optimism over the U.S.-Iran ceasefire. Many portfolios remain heavily weighted in Apple, Microsoft and Alphabet. Apple trades at $333.02, Microsoft at $381.70 and Alphabet at $319.74.

Morgan Stanley said the narrow group of mega-cap names that drove past gains will face different market dynamics ahead, and investors should re-evaluate concentrated positions in these stocks.

Thursday's session shows the pressure already building. Nvidia is down 0.9 percent at $206.84. Meta has fallen 1.8 percent to $595.19, Tesla 2.1 percent to $313.03 and Amazon 0.7 percent to $232.11. The Nasdaq trades down 0.6 percent at 24,976 while the S&P 500 is flat at 7,412.

A rotation out of these concentrated positions would broaden market participation, distributing capital across a wider range of companies and sectors—and shifting which stocks actually drive index returns.