I believe a mortgage would be treated very much like a loan from an accounting perspective. My colleague done a quick guide which can be found at the following link:
However, I’m not an accountant, so it may be best to double check with yours just to be safe.