Barcode generation and scanning with Cypress

I’m trying to automate a flow that requires scanning barcode. This was tested manually by using a 3rd party website to generate the barcode, and the actual scan barcode part was done on the site (using mobile browser and camera) I’m trying to automate. Since Cypress does not support multiple tabs or multiple browsers, I’m looking for alternate approaches to do so. The data that I can get is the UPC of the product, and the next step is to generate its barcode and scan it. How do we go about this using Cypress?
I know that there is a way to scan QR codes, but I haven’t been able to find much regarding generation and scanning of barcodes.