Different rule set, but NCAA has more ammunition on the gun belt for this, with the substitution ‘match up’ rule, But, even then, coaches still try this stuff. I had a coach/team attempt to use the ‘classic’ hideout play a few years ago, with having a guy jog/walk to near the sideline after a down was over, then set up near the sideline. The coach had told me about possibly using this, and I told him it would probably not be legal. But he tried it anyway. As R, I saw the player moving out to the sideline, looking for all the world like he was going to leave the field. Then he stopped very near the sideline. I knew this was it.
Instead of waiting to throw the flag, or hope my sideline guys would throw a flag, I decided just to thwart the attempt. I stopped the game clock, and started moving toward that sideline, asking the line judge to confirm the down with me. Now, with all eyes on me and my line judge, with the hideout guy right there, too, I’m verifying, “Do you have third down? I need to verify the down. 3rd down? Yes? Oh. OK. 3rd down.” With all of that, Team B sees the hideout guy, and moves a defensive back over to cover him. Back to play. Ball is snapped, pass is thrown, incomplete. 4th down. No more attempts to run the hideout.
As the two Bobs said in Office Space, I “…fixed the glitch.”