Hello there,
This might be achieved easily in Azure Active Directory Application Proxy.
Azure Active Directory (Azure AD) has an Application Proxy service that enables users to access on-premises applications by signing in with their Azure AD account.
Tutorial: Add an on-premises application for remote access through Application Proxy in Azure Active Directory
Configure custom domains with Azure AD Application Proxy
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--