it depends the gov says:
https://www.gov.uk/guidance/coronavirus ... -residents
If you intend to stay in the UK
If you decide to stay in the UK, you should apply for the necessary leave to remain in the UK. You’ll also be able to submit an application form from within the UK where you would usually need to apply for a visa from your home country.
You’ll need to meet the requirements of the route you’re applying for and pay the UK application fee. This includes those whose leave expires before 31 August 2020.
The terms of your leave will remain the same until your application is decided. If you are switching into work or study routes you may be able to commence work or study whilst your application is under consideration .