Hi
Thank you for your query.
You can find HMRC guidance about company residence here:
NTM120030 - Company residence: overview
Company residence can be complicated.
If you need advice about whether your company is liable to tax in the UK, you will need to speak to a financial adviser, such as an accountant.
Thank you.