I'm using the Hack Nerd Font font and have zsh-syntax-highlighting and zsh-autosuggestions plugins installed.
These are my right element prompts =
(
status
command_execution_time
node_version
context
newline
time
)
This is my terminal when I open it and go to a node folder:

This is my terminal after I get to root privileges:

The same issue happens with different configurations (1 line, different icons, different spacing, compact vs concise, etc).
The issue does't happen in the VSCode integrated terminal.

