How to duplicate frame and display side by side Gstreamer

I want to display the following video side by side so that I have 2 1280x720 frames creating a 2560x720 frame (equivalent to using hconcat in OpenCV). Is it possible to do this in a gstreamer pipeline? Here is the pipeline to get the camera stream:

gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! \
   'video/x-raw(memory:NVMM),width=12780, height=720, framerate=60/1, format=NV12' ! \
   nvvidconv flip-method=0 ! 'video/x-raw,width=1280, height=720' ! \
   nvvidconv ! nvegltransform ! nveglglessink -e

You can use nvcompositor plugin. Please refer to
Nvcompositor is not working on Jetpack 4.6 - #5 by DaneLLL