Unreal Engine 4 for 2D games in 2020?

Unreal Engine is meant for 3D games… You could just make a 3D environment then put the camera angle in a position that makes it look like a 2D sidescroller! If you are talking about 2D sprites and pixelated games then UE4 is not the right choice for you. There is a plugin called Paper2D (I don’t know if it is still around or not) is the only option for you but most of the tutorials are pretty old and it is not really good from what I heard.

I suggest using a different engine like Unity or Godot since both can make 2D and 3D games.