There is a Sensus update that is supposed to help with this. Mine used to get so hot it would shut down leaving me lost without ac
After discovering this issue, I tinted the front windshield and added some dot matrix around/below the rear-view mirror which resolved it prior to the update. Tint was planned anyways.
If you look at the new XC60 dash, they have increased the vertical angle to resolve this, keeping the sun from making direct contact.