Hi,
The UK charges income tax and capital gains tax using the 'arising' basis, on world-wide income, even if it is not remitted to the UK.
Any individual resident and domiciled in the UK, or resident but not domiciled in the UK, is taxed on the arising basis by default, which means the foreign income of UK residents is charged to tax in the year in which it arises overseas.
For individuals, who are resident but not domiciled, they can elect to use the 'remittance basis.
Please see further guidance on the remittance basis:
Residence, domicile and the remittance basis: RDR1
As your portfolio is an asset, you may be subject to capital gains tax on any gains arising from the disposal.
Thank you.