You will need to review the guidance at RDR1, to determine your residence status.
If split year treatment applies and you have capital gains tax to pay, you can declare the gains by submitting an online tax return before 31 January 2023.
The deadline for paper tax returns was 31 October 2022, so a paper return would receive a £100.00 late filing penalty.
If you need to declare split year treatment, you will need to either purchase 3rd party software that meets HMRC standards or submit a paper tax return.
You can find guidance on residence, domicile and remittance at :
Residence, domicile and the remittance basis: RDR1