You should use the home computer as the drone, since it’s on all the time.
The iPhone will sync its mailboxes with the server, so it will see that the drone has moved the spam messages from the inbox to the Spam mailbox. As with your work Mac, you can train the drone from the iPhone by moving messages to the TrainSpam or TrainGood mailboxes.