IMHO it depends on the theme you use.
try well maintained themes and you will not have that kind of problem. Like gruvbox light.
https://github.com/mbadolato/iTerm2-Color-Schemes/
has lot of color themes. If your terminal of choice can use ANSI colors you can use tinted-shell.
Does the clip to remove the cover has label “sudo”?