How to modify the HTML output of Gutenberg block? (Youtube)

I’m using a headless WordPress linked to a Nuxt projet and I like to modify the output of my Gutenblock when it’s called from the REST API. Current ouput is : <!– wp:core-embed/youtube {“url”:”https://www.youtube.com/watch?v=6m-Gpb5l5j4″,”type”:”video”,”providerNameSlug”:”youtube”,”className”:”wp-embed-aspect-4-3 wp-has-aspect-ratio”} –> <figure class=”wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio”><div class=”wp-block-embed__wrapper”> </div></figure> <!– /wp:core-embed/youtube –> Ultimately, I’d like to output the iframe…

WordPress add URL parameters after page number

I’m using pagination in posts so my URL can look like this when on page 3: mysite.com/custom-post-archive/page/3 That works fine but I want to add parameters after the page number for example: mysite.com/custom-post-archive/page/3?param=hello&another=world It returns 404/page not found with the URL parameters… I tried: function my_query_vars( $vars ) { $vars[] = ‘param’; $vars[] = ‘another’;…