Sure just like state laws that restrict freedom of speech and the press. Those are not covered by the first amendment...right? Oh wait the first amendment says "Congress shall make no law", the second does not. Further the 14th amendment states "No State shall make or enforce any law which shall abridge the privileges or immunities of citizens of the United States". The privileges and immunities in question were pretty much universally understood to be, at minimum, those protected by the first 8 amendments to the federal Constitution. (A right properly understood, is an immunity from governmental action)
The second amendment has not been incorporated. It only applies to the federal government. The gun laws in your state are guided by your state constitution, not the U.S. Constitution.
That's how different states have different gun laws. How some states allow concealed carry and some don't. How certain cities like LA, New York, Chicago, Washington, DC can actually ban the ownership of guns.
(Didn't you ever wonder how states could have different gun laws?)