The blazor-error-ui element is normally hidden due the presence of the display: none style of the blazor-error-ui CSS class in the app's stylesheet (wwwroot/css/app.css). When an error occurs, the framework applies display: block to the element.