Is it true that if $G,H$ are groups, then every subgroup $S$ of $G\times H$ can be written in the form $S\cong S_G\times S_H$, where $S_G$ and $S_H$ are subgroups of $G$ and $H$ respectively? That is, is $S$ isomorphic (not necessarily equal) to a direct product of subgroups of $G$ and $H$?
Notice that I am not asking whether $S=S_G\times S_H$ for some $S_G,S_H$ subgroups of $G,H$; this is obviously false. Wikipedia provides a trivial counterexample: consider the subgroup of $G\times G$ consisting of elements in the form $(g,g)$. This is clearly not a direct product of subgroups of $G$. However, it is isomorphic to a direct product of subgroups of $G$; namely, the product $G\times \{e\}$.
Can someone please help me prove or disprove the above statement?