Extend htmlSerializer to add additional params

I am trying to extend the render of the htmlSerializer so I can add additional dynamic params/props to the rendered HTML.

I am using Nuxt/Vue.

Can you help?