The consent everyone forgets
Planning permission is the consent everyone remembers. The licence to alter is the one they forget.
A licence to alter is a formal written consent, usually a deed, from your freeholder, allowing specific alterations to your flat. Your freeholder is the landlord who owns the building. You are the leaseholder, the person who owns a long lease of the flat inside it. Where your lease requires it, the freeholder's written consent is a precondition: the work is not allowed until you have it.
This consent is separate from planning permission and from building regulations. You can hold full planning permission for your scheme and still need the freeholder to say yes. One does not stand in for the other.
So here is the direct answer. Before structural or layout works to a leasehold flat, you usually need a licence to alter, and you need it before the work starts, not during and not after.
It matters because it is the step most renovations leave too late. The cost of getting it wrong does not land during the build. It lands years later, on sale.
One thing to fix in your mind from the start. Whether you need a licence, and on what terms, turns on the wording of your lease. This article gives the general position. Your own answer is in your lease, and a solicitor should read it.