I just need to know how In XY.
Hoopa changes its form when the Prison Bottle key item is used on it. It will revert when placed into a box. - This form is only in Omega Ruby & Alpha Sapphire
Unbound Hoopa does not exist in XY. It can only be changed by ORAS