Define mutatis mutandis in legal terms

Mutatis mutandis is a Latin phrase that means "with necessary changes." In legal terms, it is used to indicate that one provision or ruling should be applied to a similar situation, but with the necessary modifications to account for any differences between the two circumstances. For example, if a court ruling applies to one specific type of contract, but a similar situation arises with a different type of contract, the ruling may be applied mutatis mutandis with appropriate modifications to fit the new situation.