The housing costs element of Universal Credit can only help with costs on the home you are actually living in.
It is sometimes possible to get help with the housing costs for a home you aren’t living in, but this depends on your reasons for not staying there.
It’s also possible to get housing costs paid on two homes, but only in very limited circumstances.