You can only deduct interest on the first $375,000 of your mortgage if you bought your home after December 15, 2017.
Per IRS Publication 587Business Use of Your Home,page 19:
You will figure the business portion of your home mortgage interest using Form 8829 (if you file Schedule C (Form 1040 or 1040-SR)) or the Worksheet To Figure the Deduction for Business Use of Your Home in this publication (if you file Schedule F (Form 1040 or 1040-SR)). The business portion of your home mortgage interest allowed as a deduction this year will be included in the business use of the home deduction you report on Schedule C (Form 1040 or 1040-SR), line 30, or Schedule F (Form 1040 or 1040-SR), line 32. If you cannot deduct the business portion of your home mortgage interest in full this year, you will carry over the remaining home mortgage interest to a subsequent year in which you use actual expenses to figure your business of the home deduction.
If you itemize your deductions on Schedule A (Form 1040 or 1040-SR), only include the personal part of your deductible mortgage interest on Schedule A (Form 1040 or 1040-SR), lines 8a or 8b. The personal portion of your home mortgage interest generally will be the amount of deductible home mortgage interest you figured when treating all home mortgage interest as a personal expense and applying the Schedule A (Form 1040 or 1040-SR) limits on deducting home mortgage interest, reduced by the business or rental portions deducted or carried over as a business or rental expense on Schedules C, E, or F, or any form other than Schedule A. Home mortgage interest that exceeds the amount you figured after applying the Schedule A (Form 1040 or 1040-SR) limits on deducting home mortgage interest is not deductible as a personal expense.
You figure the business portion of your real estate taxes using Form 8829 (if you file Schedule C (Form 1040 or 1040-SR)) or the Worksheet To Figure the Deduction for Business Use of Your Home in this publication (if you file Schedule F (Form 1040 or 1040-SR)). The business portion of your real estate taxes allowed as a deduction this year will be included in the business use of the home deduction you report on Schedule C (Form 1040 or 1040-SR), line 30, or Schedule F (Form 1040 or 1040-SR), line 32. If you cannot deduct the business portion of your real estate taxes in full this year, you will carry over those real estate taxes to a subsequent year in which you use actual expenses to figure your business of the home deduction.
If you itemize your deductions on Schedule A (Form 1040 or 1040-SR), only include the personal part of your real estate taxes on Schedule A (Form 1040 or 1040-SR), line 5b. The personal portion of your real estate taxes generally will be the amount of real estate taxes you paid for the home reduced by the business or rental portions deducted or carried over as a business or rental expense on Schedules C, E, or F, or any form other than Schedule A.