It is the first time the prime minister has been north of the border since the Scottish Labour leader Anas Sarwar called for him to step down in February.