To file for divorce in Utah, you or your spouse must have lived in a single Utah county for 3 months or more right before filing.
If you need a custtody order for a child under 18, usually the child needs to live in Utah with one parent for at least 6 months before filing. There are exceptions. Our Finding Legal Help page has resources if you need help.