Overriding Mautic 6 Twig Templates With a Plugin

Hello,

In Symfony 6 you can override a twig file with another twig file so the the custom twig takes precedence.

I’ve created a simple plugin on Mautic 6 to override the following twig:
app/bundles/UserBundle/Resources/views/Security/base_html.twig

However I cant’ get the paths correct in the plugin structure to get the override to work. Or is there code in Mautic to disable this feature ?

There is a similar thread but no one replied sadly.
Overriding Mautic5 Twig templates with a plugin?

It would not help anyway as I believe the paths are different between Symfony 5 and 6 anyway.

I would kindly ask a plugin developer for help as I cant find any relevant docs on the subject and ChatGPT only gives answers that don’t work, I’ve tried them all.

Thanks.