Accessibility - screen reader announces element in different order

Hello guys,

I have the following HTML rendered like this when I have my header with slot=“fixed” attribute. The screen reader announces the “app-account-dashboard-header” content at the end instead of at first
with slot fixed

I was able to “fix” it by removing the attribute and using CSS
without slot fixed

I wanted to know if there is a better solution.

Thanks and regards!