Gel electrophoresis is a ubiquitous bioanalytical technique used to characterize the components of cell lysates. However, analyses of bulk lysates sacrifice detection sensitivity because intracellular biomolecules become diluted, and the liberation of proteases and nucleases can degrade target analytes. This report describes a method to enrich cells directly within a microfluidic gel as a first step toward online measurement of trace intracellular biomolecules with minimal dilution and degradation. Thermal gels were employed as the gel matrix because they can be reversibly converted between liquid and solid phases as a function of temperature. Rather than fabricate costly heating elements into devices to control temperature-and thus the phase of the gel-Joule heating was used instead. Adjoining regions of liquid-phase and solid-phase gel were formed within microfluidic channels by selectively inducing localized Joule heat. Cells migrated through the liquid gel but could not enter the solid gel-accumulating at the liquid-solid gel boundary-whereas small molecule contaminants passed through to waste. Barriers were then liquified on-demand by removing Joule heat to collect the purified, non-lysed cells for downstream analyses. Using voltage-controlled Joule heating to regulate the phase of thermal gels is an innovative approach to facilitate in-gel cell enrichment in low-cost microfluidic devices.