Try this.
In the useHead
composable document, there is a bodyAttrs
parameter. This should help you add any custom classes in the
htmlAttrs
parameter.
https://nuxt.com/docs/api/composables/use-head#usehead
useHead({ bodyAttrs: { class: 'your-body-class', }, });