Usually this is accomplished with fakery. The liquids surface is usually just flat. A normal map and/or particle effects usually achieve the look of bubbling on the otherwise 2D surface.
If you want a proper fluid sim, you can either precompute it in software like blender or Houdini and then import it, or check out UEs new fluid sim capabilities. There is an example map available showing it off.