There are two parts to how this packet handling works once the packet is on the network from your software.
1-the generated broadcast packet flooding to all your VLANs
The bridge domain solves this problem. When you put multiple vlans or ports into a bridge domain they become one broadcast domain. A broadcast packet will be flooded to all members in the bridge domain.
The normal usage of a bridge domain is when you have multiple vlans that arrive from different parts of the network that are tagged with different vlan-id or remote interfaces but really are devices in the same ip address subnet. So we join these disparate vlans together in a bridge domain.
2-The device itself seeing that packet as a broadcast packet for itself
The device only recogonizes as a broadcast the packet for the actual subnet that the device has configured as an ip address on the device. So even it sees a broadcast packet fro anohter subnet it will not respond to this packet.