Mirror Display and Optimize for LCD Display

When I used the "Toggle Display Mirroring On/Off" it mirrors the display but does not optimize it to the monitor connected. Meaning, I have black bars on either side of the screen. Is there a way to change this?