The advice from my biology teacher in the 80s is still just as valid today (eat more fruits and vegetables and whole grains, eat less processed foods and sugar and saturated fats). See the recommendations from the AHA for example: https://www.ahajournals.org/doi/10.1161/CIR.0000000000001031
That consensus dietary recommendations change frequently is itself a myth.