After substance X becomes less dense than substance Y due to heating, it is most likely that substance X will rise due to convection.
When a fluid is heated, it typically becomes less dense and rises, while the denser fluid (in this case, substance Y) will sink. This creates a convection current, where warmer fluid rises and cooler fluid sinks, facilitating the mixing of the two substances.