It depends upon the length of employment
"Notice periods
You must be given a notice period before your employment ends.
The statutory redundancy notice periods are:
at least one week’s notice if employed between one month and 2 years
one week’s notice for each year if employed between 2 and 12 years
12 weeks’ notice if employed for 12 years or more
Check your contract. Your employer may give you more than the statutory minimum, but they cannot give you less."
https://www.gov.uk/redundancy-your-rights/notice-periods