Property tax/insurance on rental property sold in 2019

When we moved from the US to the UK, we rented our US house out. We had tenants from February 2016 until April 2019, when our tenants moved out. We then put  the house on the market. We had an offer within a month, but it took nearly 5 months to close, and we didn't try to rent the property during that time. Does that mean I should pro-rate things like the property tax and insurance payments to only include those months that we had tenants? And what do I do about the mortgage interest? Do I pro-rate that too? Or do I include the whole amount on the Form 1098 that I received from the bank?