Whilst the First Minister chooses the ministers – and may decide to remove them at any time – the formal appointment or dismissal is made by the Sovereign.
Who makes formal appointment or dismissal decisions?
the Sovereign