[A] + 跟 + [B] + 一样 [A] + 跟 + [B] + 一样 + [adjective] [A] + 跟 + [B] + 不一样
跟…一样 says two things are the same: A, then 跟 B, then 一样. 和 can replace 跟 with no change in meaning.
When both things are already the subject, 跟 drops out.
An adjective after 一样 says what they are equal in. There is no 很 here, the same as in a 比 sentence.
不 goes before 一样, not before 跟. 不一样 means "different", and with an adjective it denies that the two are equal.
Both halves have to be the same kind of thing. 我的手机跟你一样 compares a phone to a person; it needs 你的.
一样 also works on its own as a question with 吗, and before a noun with 的.