Different email templates by custom domain

Hello, I wish to send a different email template depending on the domain of the application. The email templates are the welcome email, or verification email etc. Apparently an old post suggested to use liquid syntax (conditions) for that: Custom Email template for differant applications - #3 by konrad.sopala . The post is from 2019 is still this relevant and the recommended solution doing so? Are there other solutions? Thank you.