Hello Heather,
What you see on the login UI is not fully supplied by you, the developer. Azure AD B2C injects the HTML elements it uses to collect user information. For that to work reliably, the page must be static, hence the discouragement of manually manipulating these controls. It may work for you in some cases, but to guarantee reliability across different browsers and iterations of Azure AD B2C it is generally discouraged.