Let’s take butterflies for an example.
Some butterflies change into different colours depending on the environment.
A tree camouflaged butterfly would not survive in a grass camouflaged butter. The reason they survive is because of genetic variation.