Pyrolysis seems also like a thing that hopefully becomes viable: https://en.wikipedia.org/wiki/Thermal_depolymerization
But generally, plastics are very complex long-chain carbohydrates. Burning them at low temperatures produces all kinds of partially combusted horrible byproducts, but properly incinerating them results in just water and CO2.
They also make sure there is lots of air available to the combustion process and thats done in an interesting way. They draw it in via the waste storage bunker solving two issues at once - the stinky air from all the waste gets effectively burned and the bunker is kept as negative air pressure so the smell doesn't get out.
And of course all the exhaust gases pass via a sophisticated fikter plant.
An acquaintance of mine from high school for some reason devoted much of his life to promoting trash burning technology. It seems like a good cause, but a futile one.
https://www.nytimes.com/2018/09/21/climate/sweden-garbage-us...