I had the same issue, sometimes code would work in console, sometimes it wouldn't. But it boils down to being in an iframe and blocking any chance of XSS.
To amend anything on the Trustpilot side, it's through their end, not the frontend.