You are required to apply for a student visa in the UK if you wish to study in the country. The study program should be longer than six months. For more details about study visas and how to apply for them, go through the details about the EU-Exit of the UK and visit the Study UK page.