Hi
If you use the remittance basis, you will only pay tax on your UK income / gains and any income / gains remitted to the UK.
As your dividends were generated in the UK, they will be taxable in the UK, even if paid into a foreign bank account.
Have a look at the guidance on remittance basis, which can be found here:
Residence, domicile and the remittance basis: RDR1
Thank you.