This question has been addressed in 1 Texas court opinion:
COA01 — February 19, 2026
In Robinson v. State, a defendant convicted of online solicitation of a minor argued he was entitled to a 'within-three-years' statutory defense because the undercover officer he solicited was an adult close to his own age. The First Court of Appeals analyzed Texas Penal Code § 33.021, which defines a 'minor' to include individuals the actor believes to be under 17. The court held that the applicability of the age-gap defense is determined by the defendant's subjective belief regarding the victim's age—the 'persona'—rather than the officer's actual biological age. Because the defendant believed he was soliciting a 15-year-old, he was not entitled to the defense.
Litigation Takeaway
“A parent's intent to solicit a minor is the legally operative fact in determining the risk they pose to children; they cannot use the 'actual age' of an undercover officer as a technicality to minimize their conduct or protect their custody rights in family court.”