This should do the job if the if your device is connected to another one that is trunking VLAN 10 and 20
set interfaces xe-0/0/5 flexible-vlan-tagging
set interfaces xe-0/0/5 encapsulation flexible-ethernet-services
set interfaces xe-0/0/5 unit 10 encapsulation vlan-bridge
set interfaces xe-0/0/5 unit 10 vlan-id 10
set interfaces xe-0/0/5 unit 10 family ethernet-switching
set interfaces xe-0/0/5 unit 20 encapsulation vlan-bridge
set interfaces xe-0/0/5 unit 20 vlan-id 20
set interfaces xe-0/0/5 unit 20 family ethernet-switching
set interfaces irb unit 10 family inet address 10.10.10.2/24
set interfaces irb unit 20 family inet address 220.127.116.11/24
set vlans vlan10 vlan-id 10
set vlans vlan10 interface xe-0/0/5.10
set vlans vlan10 l3-interface irb.10
set vlans vlan20 vlan-id 20
set vlans vlan20 interface xe-0/0/5.20
set vlans vlan20 l3-interface irb.20
For the access interface can you try it without the VLAN ID? unfortunately, I don't have the resources to test this out.
There is also the option to use a native VLAN if you need untagged traffic on that same interface.
set interfaces xe-0/0/5 native-vlan-id 15
Please let me know how it goes, eager to hear about it!
If this solves your problem, please mark this post as "Accepted Solution" so we can help others too \:)/
JNCIE-ENT#863, 3X JNCIP-[SP-ENT-DC], 4X JNCIA [cloud-DevOps-Junos-Design], Champions Ingenius, SSYB