What it means when I'm moving to a cover and the cover icon appears in white and sometimes in red?

What it means when I’m moving to a cover and the cover icon appears in white and sometimes in red?

Red means that you will be flanked by (not in cover from) at least one enemy in that location.