Phenotypic plasticity is a prominent mechanism for coping with variable environments, and a key determinant of extinction risk. Evolutionary theory predicts that phenotypic plasticity should evolve to lower levels in environments that fluctuate less predictably, because they induce mismatches between plastic responses and selective pressures. However, this prediction is difficult to test in nature, where environmental predictability is not controlled. Here, we exposed 32 lines of the halotolerant microalga Dunaliella salina to ecologically realistic, randomly fluctuating salinity, with varying levels of predictability, for 500 generations. We found that morphological plasticity evolved to lower degrees in lines that experienced less predictable environments. Evolution of plasticity mostly concerned phases with slow population growth, rather than the exponential phase where microbes are typically phenotyped. This study underlines that long-term experiments with complex patterns of environmental change are needed to test theories about population responses to altered environmental predictability, as currently observed under climate change.