In the UK, there is no general grandfather clause that applies to all laws. However, there are some specific laws that do contain grandfather clauses. For example, the Equality Act 2010 contains a grandfather clause that exempts certain religious organisations from the requirement to provide goods and services to people of all sexual orientations.
Overall, the UK does not have a general grandfather clause, but there are some specific laws that do contain grandfather clauses.