For any UK landlord of residential property (not holiday let), the TOTAL amount of mortgage interest only needs to be entered into box 44 (paper/postal version) of property income/expenses. The assessment will then automatically calculate 20% of this total amount to offset against income.
Seemingly, there was a recent year where one was instructed to only enter 20% of the mortgage interest payment on the tax return. Some Google results still state that only 20% of mortgage interest should be entered into the tax return though the tax return notes don’t say this. Doing this incorrectly could be costly given the major mortgage increases for many over the last year.