Starting from Madrid to Iceland, a transit in the UK is required. As an individual with residual residence permit for Spain, do I need to apply for a through train visa when transiting in the UK?

Starting from Madrid to Iceland, I need to transfer in the UK and require special handling for checked luggage. As a holder of Spanish residence permit, do I need to apply for transit visa at the UK border control?