Actor Jesse Tyler Ferguson, who plays Mitchell Pritchett on the ABC series, shared a photo Thursday of Beckham posing with her husband, David Beckham, and their four children in the Dunphy living room.
"The role of Claire is being played by @victoriabeckham. The role of Phil is being played by @davidbeckham. The role of Victoria Beckham is being played by @jessetyler," Ferguson wrote.
"Thank you all for coming to visit the Modern Family set today! We loved having you all!!!
"EDIT: the family was only visiting the set, not shooting an episode. Although I think David could be Lily's new soccer coach," he later added, referencing his character's daughter, Lily (Aubrey Anderson-Emmons).
Beckham shares three sons, 18-year-old Brooklyn, 14-year-old Romeo and 12-year-old Cruz, and 6-year-old daughter Harper with David.
The 43-year-old designer and former Spice Girls singer posted a similar picture to Ferguson's on her own account.
"Dunphy's are out, the Beckham's moved in. The new modern family! #DavidDumphy #mitchstolemypose @jessetyler @davidbeckham X VB," she wrote.
FOLLOW REALITY TV WORLD ON THE ALL-NEW GOOGLE NEWS!
Reality TV World is now available on the all-new Google News app and website. Click here to visit our Google News page, and then click FOLLOW to add us as a news source!
The Beckhams' visit followed an incident last week where Ferguson's husband, Justin Mikita, had accidentally photobombed one of David's photos with his kids.
Mikita laughed off the moment on Instagram.
"Beckham photo bomb? #IPromiseItWasAnAccident," he wrote.
Copyright 2017 United Press International, Inc. (UPI). Any reproduction, republication, redistribution and/or modification of any UPI content is expressly prohibited without UPI's prior written consent.