Plants adapt to different environments through various mechanisms such as changing their leaf size and shape, altering their root systems, adjusting their flowering times, and developing mechanisms to conserve water, like succulent plants in arid environments. Additionally, plants may also evolve specific traits over time that help them thrive in specific habitats, such as growing taller to compete for sunlight in dense forests or developing specialized structures to store nutrients in nutrient-poor soils.