None of that generates an iFrame or the JS to render a iFrame as per the Embed docs.
Given additionally that the Clips Emebds doesn’t use the Embed JS lib anyway. (Which I forgot so there is no JS to auto attach a parent when embedding clips)
So your generated HTML is missing the required parent .
I was after your frontend JS not the server JS.