How to find whether impersonated as a user using “Log in to Experience as User” in Salesforce?

Visualforce Page: Apex Controller: Logged in As Experience User(without impersonation): Admin Logged in As Experience User(with impersonation): For LWC(Lighting Web Component), check the following.