Hi
If you are not a UK tax resident in the 23/24 tax year, you only declare your UK sources of income for that year, in a self assessment tax return, where you declare your are not resident on SA109. You cannot use the HMRC online tax return.
You will have to submit a paper tax return in its entirety at
Self Assessment Includes filing, deadlines, pay and tax records or if you have a government gateway user ID and password, you can buy a commercial tax return and submit that online.