The TOTP is a way to secure your website by asking the TOTP while login in. It completely depends on the site you are using. Most of the sites make the TOTP mandatory like GitHub.