I'm not sure why you say this. It's well known food is often very staged, and inedible substitutes often used in advertisements.
Do you want an advertising picture of a puddle of melted ice cream under hot studio lights?
And why would it be illegal for food?