It is possible to make a new Will or change an existing one, even when you no longer have mental capacity.
A qualifying person can make an application to the Court of Protection to seek approval for a new Will/Codicil. The Court will approve the Will/Codicil if they consider the changes to be in the best interests of the person who lacks mental capacity.