is this not what the onchain html people are on about? injecting html/js inside and svg etc
Yep! There’s two popular flavours: onchain via solidity (code that draws the token on the fly in tokenUri, usually SVG) or onchain by storing some code in state and having a client render it (Artblocks, Deafbeef)