Email templates can be provided by the PDS admin to allow customization; the html_templates used like captcha.hbs should be able to do the same. The ideal solution would mimic what emails do here
Microservice to bring 2FA to self hosted PDSes