Rotate WebCam feed (mjpeg) in a Lovelace

I’m trying to use this to rotate text in a Picture Elements card and all it seems to do is make the text disappear. I’ve also tried putting the color: and left: right: within the {} but it makes no difference. Any suggestions?

  - entity: sensor.panel_122008049772_efficiency
    style: | 
      ha-card {
        transform: rotate(90deg);
      }
      color: white
      left: 84%
      top: 71%
    type: state-label