Hi
If the sibling who is the beneficial owner of the property, pays a sum to their sibling to remove them from the mortgage, then there is no capital gains liability, as the mortgage is only a means to acquire the property.
It is the beneficial owner who will potentially be liable to capital gains tax on the disposal of the property. Please have a look at
CG10720 - Persons chargeable: beneficial owner onwards for more information.
Thank you