You'll need to position yourself near enough to the jump rope that it will start counting you as jumping - even though you are frozen in place, and no jumping will be needed. If done correctly, Mario will freeze standing in midair near the jump rope. This will hold the camera from glitching UNTIL you have Talkatoo in the screen again, at which point the camera will stop moving. However, we don't want to lock the camera just yet.
This can take a lot of practice - but if done right, the camera will lock into place until you warp somewhere else, and Talkatoo can't be talked to again. Step 2 - Jump and throw Cappy over Talkatoo's head so that it will come back and hit him, and talk to Talkatoo right before Cappy smacks into the bird.
Step 1 - Head to New Donky City and go to the main plaza near the jump rope area where Talkatoo is.