Jennifer J. answered 03/19/19
Master's degree in English - 8 years experience teaching writing
Hi, Esteban. I’d say this sentence falls under the rule to use a comma wherever necessary to avoid confusion.
You can see an example and explanation of this rule on the Purdue Online Writing Lab website. https://owl.purdue.edu/owl/general_writing/punctuation/commas/extended_rules_for_commas.html
Item 11 shows the rule.
Best wishes,
Jennifer Jenson