Unveiling cosmological information on small scales with line intensity mapping