Sildenafil is used to treat erectile dysfunction and pulmonary arterial hypertension but is often illicitly added to energy drinks and chocolates. This study introduces a lateral flow strip test using aptamers specific to sildenafil for detecting its illegal presence in food. The process involved using graphene oxide SELEX to identify high-affinity aptamers, which were then converted into molecular gate structures on mesoporous silica nanoparticles, creating a unique signaling system. This system was integrated into lateral flow chromatography strips and tested on buffers and chocolate samples containing sildenafil. The method simplifies the lateral flow assay (LFA) for small molecules and provides a tool for signal amplification. The detection limit for these strips was found to be 68.2 nM (31.8 µg/kg) in spiked food samples.