When an XML sitemap includes hreflangs, it is displayed without CSS styles, which is considered the expected behavior. This can happen because the Google Chrome does not have a built-in viewer specifically designed for XML files like it does for HTML.
Here is an example of the sitemap configuration where hreflang tags are enabled:
When opening the XML sitemap link, its content is displayed as a plain text as follows:
Even though, it is still possible to view the XML Sitemap with the CSS style applied by checking the source code of the page. To do so, you can follow these steps:
1. Right-click on the webpage you want to view the source code of.
2. In the context menu that appears, select “View Page Source” or “View Source” option. This will open a new tab or window displaying the HTML source code of the webpage.
3. Alternatively, you can also press the keyboard shortcut Ctrl+U (Command+Option+U on Mac) to quickly open the page source in most browsers.
Below, you may view the sitemap layout with the source code opened: