What is the problem you are trying to solve?
Force OTP for a site, an instance or a role.
In my case, I want to force users to use OTP for a role like Administrator or everyone.
Administrators should be use OTP because it is important to secure a site, an instance or at system level.
What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc
All kind of sites.
What is your proposed solution? (optional)
Look at I Asked AI to Add MFA to Liferay... Here's What Happened - Liferay
You can get what you want to improve DXP version.
And have a fragment and not an hard coded JSP can be great if we want to easily change UI.