Not ‘switching’ necessarily, but it does feel jarring to jump from 3rd person limited, ‘He ran upstairs,’ to, ‘Yikes, it’s messy up here,’ without a clearly marking that we’re reading a character’s thoughts (with italics, quotation marks, or a ‘speech’ tag).