You can use a sprite with a 2x2 distort mesh to do that.
Set the project properties to standard z scale.
Make the sprite of size 1x1.
The set the mesh points to the triangle corners. Two of the mesh points would have the same positions so the quad would collapse into a triangle.
For more efficiency you could try to do two adjacent triangles with one quad, but that’s not always possible.