Typically cropping and then upscaling.
While I don't think it's right to call these crops "optical zoom", the quality is typically pretty good.