has there been something which triggered this initial behavior e.g. a bout of sickness or a stomach bug? It's not uncommon for children to become texturally intolerant after a stomach bug where often they're almost reduced back to babyhood by eating things like just yoghurt and porridge and the like iyswim and for eating habits to suffer after that.
What I would do is:
try switching the cooked meal to lunchtime rather than teatime so as to get a better picture of whether it is actually the cooked food he is objecting to or whether it is something else e.g. whether he's just not hungry at teatime.
Reduce snacks to an absolute minimum. so if he's not eating meals then he doesn't get snacks. Any snacks you do give make them only healthy ones, so remove all biscuits, sweets, crisps, cake and give fruit only. Not that I'm saying you give too many of these things fwiw just that it's very easy for children to get caught up in the desire for sweet snacks and then not eat healthily as a result, something which is easier to fall into when you have an older child who is allowed access to such things.
At mealtimes present the food and if he refuses to eat it then remove it without comment when you remove the rest of the meal from the table, but offer nothing else until breakfast.
And this is the hard bit, reward the good behavior, ignore the bad behavior. So, if he is eating then lots of talk/praise/even a sticker chart for trying something/eating all of something/sitting nicely at the table. with a reward if he gets so many stickers, perhaps get one of those ones which gets you to the sun or something? I had a marble jar for mine when he was little.... use this system even during the meals when you generally don't get problems, because he will associate good mealtimes and good behavior with getting the stickers.
But if he screams then ignore, and what I mean by that is that screaming is not tolerated on any level, so if he screams remove him from the table and put him in time-out for two minutes. It can be his bedroom, the lounge, somewhere you can close the door but which isn't too much fun but where he will be safe. Tell him he is going in there because he is screaming, but after two minutes go back and get him, give him a cuddle and move on back to the table. Repeat as necessary.
And utter the words "this too shall pass." :-)